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
- [Android] 30-45% of allocated memory is "Unknown" in an empty project on some Pixel devices
- The tag adder functionality does not work if a space is entered instead of a name
- Errors thrown in the Console when configuring In-App Purchases package
- Longer Scaler Profile names go out of the"Scaler Profilers" section
- AI Navigation window UI elements overlap when the AI Navigation window is docked and resized
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.