You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
GDScript: Show error on unary operators without argument
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
func test():
|
||||
print(~)
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_PARSER_ERROR
|
||||
Expected expression after "~" operator.
|
||||
@@ -0,0 +1,2 @@
|
||||
func test():
|
||||
print(not)
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_PARSER_ERROR
|
||||
Expected expression after "not" operator.
|
||||
@@ -0,0 +1,2 @@
|
||||
func test():
|
||||
print(!)
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_PARSER_ERROR
|
||||
Expected expression after "!" operator.
|
||||
@@ -0,0 +1,3 @@
|
||||
func test():
|
||||
var a = 0
|
||||
print(a--)
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_PARSER_ERROR
|
||||
Expected expression after "-" operator.
|
||||
@@ -0,0 +1,3 @@
|
||||
func test():
|
||||
var a = 0
|
||||
print(a++)
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_PARSER_ERROR
|
||||
Expected expression after "+" operator.
|
||||
Reference in New Issue
Block a user