Merge pull request #52706 from vnen/gdscript-ternary-operator-crash
GDScript: Show error when missing expression after ternary else
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
func test():
|
||||
var x = 1 if false else
|
||||
print("oops")
|
||||
print(x)
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_PARSER_ERROR
|
||||
Expected expression after "else".
|
||||
Reference in New Issue
Block a user