Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2019.2
2019.3
2019.3.0f3
2020.1
Issue ID
1205010
Regression
No
Unity editor crashes if code has nullable structs with circular dependency
How to reproduce:
1. Open attached project "754243.zip"
2. In Project window, open "Test.cs" script
3. Uncomment and save the code
4. Select the Editor
Expected result: The code compiles
Actual result: The code compiles and Editor crashes
Reproducible with: 2018.4.14f1, 2019.2.16f1, 2019.3.0f3, 2020.1.0a16
Could not test with: 2017.4.35f1 (nullable types were not yet implemented)
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
- "SupportsRandomWriteOnRenderTextureFormat()" shows "False" when executed on 2023.2 and 6000.0 streams
- Size of ShadowCaster2D with Casting Source set to a Collider increases when RigidBody2D is attached to the GameObject
- GameObjects with a material derived from a Custom Lighting Surface Shader are displayed as skewed on quads when the Camera's Width and Height properties of the Viewport Rect are lower than 1
- Warning 'Unable to find player assmebly' is thrown when building some Project Templates
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
Resolution Note:
This issue is caused because the reference assemblies from .NET Standard 2.0 did not contain private fields, preventing the compiler from erroring during compilation. This has been resolved for .NET Standard 2.1. Once Unity upgrades to .NET Standard 2.1 this code will no longer compile.
See: https://github.com/dotnet/standard/pull/1012