forked from sascha/godot
GDScript: Add some checks for `@tool` and `@icon`
parent
27253f3eb2
commit
dbc3c82043
@ -0,0 +1,5 @@
|
||||
@icon("res://1.png")
|
||||
@icon("res://1.png")
|
||||
|
||||
func test():
|
||||
pass
|
||||
@ -0,0 +1,2 @@
|
||||
GDTEST_PARSER_ERROR
|
||||
"@icon" annotation can only be used once.
|
||||
@ -0,0 +1,5 @@
|
||||
@tool
|
||||
@tool
|
||||
|
||||
func test():
|
||||
pass
|
||||
@ -0,0 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
"@tool" annotation can only be used once.
|
||||
Loading…
Reference in New Issue