Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2019.4
2019.4.20f1
2020.2
Issue ID
1320502
Regression
No
Compilation error is not shown in the Console window when using generic type
Reproduction steps:
1. Open the attached "case_1320502" project
2. Open the "ResourceImageDownloader_1.cs" script
3. Note that the IDE shows a compilation error at line 10
4. Open the Editor and observe the Console window
Expected result: a compilation error is logged in the Console window
Actual result: the error is not shown in the Console window
Reproducible with: 2018.4.33f1, 2019.4.23f1, 2020.2.0a11
Not reproducible with: 2020.2.0a12, 2020.3.3f1, 2021.1.0f1, 2021.2.0a10
The expected error message:
Assets\ResourceImageDownloader_1.cs(10,13): error CS8761: Operator '==' cannot be applied to 'default' and operand of type 'T' because it is a type parameter that is not known to be a reference type
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
- Shadows are not cast when the Light's CullingMask and the GameObject's Layer do not match
- Graphics.DrawMeshInstanced does not work when 2D Renderer and 2D Shaders are used
- SpeedTree does not move when using WindZone
- "Undeclared identifier 'LinearToSRGB'" error is thrown when creating a color variable with HDR color mode and assigning a Custom Render Texture target in Shader Graph
- Input System package is missing when creating a new HDRP project
Resolution Note (2019.4.24f1):
The issue is no longer reproducible in 2020.2.0a12 and above