GDScript: Show error when missing expression after ternary else
This commit is contained in:
parent
a5c299630d
commit
107af38fd1
3 changed files with 10 additions and 0 deletions
|
|
@ -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".
|
||||
Loading…
Add table
Add a link
Reference in a new issue