Please sign in to comment.
SI-6728 Fixes crash in parser on incomplete for expression
The parser was trying to take the position of an empty expression which would crash. Son on the empty expression case in TreeBuilder# makeWhile it tries to do that and, if that failed, gets a position that wraps both the condition and the body. I also made a slight improvement to the UnsupportedOperationEx messages in Position.
- Loading branch information...
Showing with 14 additions and 5 deletions.
|@@ -0,0 +1,4 @@|
|+t6728.scala:4: error: '(' expected but '}' found.|
|+one error found|