Search Issue Tracker
Fixed in 2017.3.0f3
Fixed in 2017.1.X, 2017.2.X
Votes
3
Found in
4.5.4f1
Issue ID
634364
Regression
No
A yield statement inside a lambda expression which is a callback of another coroutine causes an Internal compiler error
To Reproduce:
1. Open the attached project, an 'Internal compiler error' is thrown because of the 'yield break' in line 70.
2. If you use a different yield statement for example 'yield return null' instead you get the expected 'The yield statement cannot be used inside anonymous method blocks' error.
3. The compiler doesn't break if the MyCallback delegate is defined outside and only passed to the new coroutine, then you also get the expected error.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Incorrect UI wording: Missing articles in project creation options
- “[Worker0] InvalidOperationException: Cannot create a new scene additively with an untitled scene unsaved.” error thrown when closing converted Sub Scene in Inspector window
- “InvalidOperationException: Trying to set the parent for HierarchyNodeHandle” errors spammed in the Console when converting Sample Scene to Sub Scene and Entities Hierarchy window is open
- Using Physics.ComputePenetration on a Capsule collider causes it to sometimes return incorrect value when dragging it through the Mesh collider
- Sprite is rendered incorrectly in Web Build when it is set as a Splash Image Logo
Add comment