Search Issue Tracker
Fixed in 2019.2.X
Fixed in 2019.3.X
Votes
0
Found in
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.3.0a1
2019.3.0a11
Issue ID
1174681
Regression
No
[IL2CPP] Build fails if trying to assign a default value to a function's reference parameter ("in" keyword)
How to reproduce:
1. Open the attached project
2. Build the project with "IL2CPP" Backend
Actual result: The build fails.
Expected result: The build succeeds.
Reproducible with: 2019.3.0a11, 2019.2.1f1, 2019.1.14f1, 2018.4.6f1.
Notes:
- The issue happens when assigning a default value to a reference parameter (C# 7.2 "in" keyword)
- The issue is not reproducible if assigning "null" as default value
- The build succeeds if using "Mono" backend
- The build fails with error:
IL2CPP error for method 'System.Boolean Test::TestFunction(System.Int32&)' in assembly 'C:\Users\[USERNAME]\Desktop\ReproProject\ReproProject\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dll'
Additional information: Specified argument was out of the range of valid values.
-----------------------------
Fixed in 2020.1.0a5, 2019.3.0b4, 2019.2.7f2.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on memcpy when importing lightmaps after GI bake
- NullReferenceException is thrown when creating the TextMeshPro component and entering the Play Mode without importing TMP Essentials
- [Linux] Player crash on Shader::SRPBatcherInfoSetup when opening player build
- [Android] FPS does not match the targeted FPS when it is set with Application.targetFrameRate
- RenderPipelineManager.activeRenderPipelineTypeChanged does not detect changes when changing the Render Pipeline Asset outside of Play Mode
Add comment