Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2019.3.2f1
2020.2
Issue ID
1228541
Regression
No
Console window doesn't show an informative compilation error when the "in" method parameter modifier is used in the method call
How to reproduce:
1. Open the attached project
2. Open the Console window
Expected result: Console window shows the specific compiler error
Actual result: Console window shows "Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)" message which doesn't specify the compiler error
Reproducible with: 2018.4.20f1, 2019.3.8f1, 2020.1.0b3, 2020.2.0a5
Could not test with: 2017.4.39f1 and earlier ('readonly references' is not available in C# 6)
Notes:
-This was reproducible using JetBrains Rider
-Removing the "in" parameter modifier at line 11 of "MyBehaviourScript.cs" and recompiling solves the issue
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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Resolution Note:
The fix involves updating the C# compiler, or at least revamp the whole C# compiler message parsing system (if it is ok to just show an error).
Both are non-trivial change with too much risk to do.