Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.2.X, 2021.1.X
Votes
0
Found in
2018.4
2019.4
2019.4.13f1
2020.1
2020.2
2021.1
Issue ID
1293309
Regression
No
IL2CPP fails to build when "init" accessor is used in C# 9
How to reproduce:
1. Create a Unity project
2. Add "TestScript.cs"
3. Change C# compiler to C# 9
4. Build and Run
Expected results: Build and run successfully
Actual results: The Build fails on "Exception: IL2CPP error for method 'System.Void Person::.ctor(System.String)"
Reproducible with: 2018.4.30f1, 2019.4.16f1, 2020.1.17f1, 2020.2.0f1, 2021.1.0a10
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts which worked with TMP Font Asset Creator
Resolution Note (fix version 2021.2):
Fixed in Unity 2021.2.0a3 and newer
Resolution Note (fix version 2021.1):
Fixed in Unity 2021.1.0b7 and up
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.6f1
Resolution Note (fix version 2019.4):
Fixed in Unity: 2019.4.23f1