How to reproduce:
1. Open the attached project "project2022.zip"
2. Build the project for UWP with Development Build and Script Debugging enabled
3. Open the built Solution
4. Build Solution with Release ARM64 settings
Expected results: Build is successful
Actual results: Build fails with multiple syntax errors
NOTE: This is being caused by an issue in the IL2CPP copy of the Mono code and has been fixed in the IL2CPP repo in this PR:
[Internal link]
It just needs merging in all the Unity branches affected.
Reproducible with: 2022.1.0b1, 2022.3.1f1, 2023.1.0b19, 2023.2.0a18
Not reproducible with: 2021.3.27f1, 2022.1.0a16
Reproducible on: Windows 10