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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Resolution Note (2019.4.24f1):
The issue is no longer reproducible in 2020.2.0a12 and above