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
- UGUI Pointer Enter/Exit does not always trigger when hovering quickly over it
- Longer Add Component submenu labels obscure UI and are not truncated
- Scripts submenu of the Add Component Menu can be scrolled horizontally
- Documentation link icons' are not aligned in he "Recommendation" tabĀ
- "Game Specifications" section becomes blank, and users get "ArgumentException: Cannot unschedule unknown scheduled function" during the "Game Specification" selection when the "Multiplayer Center" window is docked
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.