mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
GDScript: Add some checks for @tool and @icon
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user