Search Issue Tracker
Won't Fix
Votes
1
Found in
5.3.5p7
Issue ID
825531
Regression
No
Angle braces confuses compiler in syntactically correct C# code
How to reproduce:
1. Open the attached project
2. Observe the Test.cs compile error CS1525: Unexpected symbol '<'
3. See Test.cs:8--9 lines
int a = 42;
Debug.LogFormat("{0} {1}", 1 < a, a > 1);
One can workaround the problem by putting one parameter into parenthesis like this:
int a = 42;
Debug.LogFormat("{0} {1}", (1 < a), a > 1);
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [UI Toolkit] ScrollView scroll offset gets reset to 0 when resetting DisplayStyle from Flex to None to Flex
- Model previews do not update when navigating the "Import Unity Package" window using the arrow keys
- [Windows] Hold on is being shown after switching platform and only disappears after hovering on the window
- Editor hangs on Domain Reload when there is recursion in SerializeReference class structure
- Crash on D3D12 when entering Play Mode in High Definition 3D Core project's Environment scene
Add comment