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
- Crash on GizmoDrawingPhysics2D::DrawCompositeCollider2DGizmo when opening a Scene that has corrupted GameObjects with Tilemap Components
- Scrolling vertically and horizontally is very fast when in Play Mode and RuntimeInputBackend is set to UIToolkitInputBackendOption.Default
- Crash on MemoryProfiler::UnregisterAllocation when initializing entities and leaving Play Mode with Occlusion Culling enabled
- Crash on mdb_page_alloc when opening a project that was running while the PC shut down
- macOS Player freeze when using RunInBackground and Command+Tabbing to and from the application
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.