GDScript: Add static typing for for loop variable
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
func test():
|
||||
var a: Array[Resource] = []
|
||||
for node: Node in a:
|
||||
print(node)
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
Unable to iterate on value of type "Array[Resource]" with variable of type "Node".
|
||||
Reference in New Issue
Block a user