mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
GDScript: Make array literal typed if for loop variable type is specified
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# GH-82021
|
||||
|
||||
func test():
|
||||
for x: String in [1, 2, 3]:
|
||||
print(x)
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
Cannot include a value of type "int" as "String".
|
||||
Reference in New Issue
Block a user