Merge pull request #61279 from Trioct/fix-typed-array-assignment

This commit is contained in:
Rémi Verschelde
2022-05-25 17:28:22 +02:00
committed by GitHub
3 changed files with 17 additions and 3 deletions
@@ -0,0 +1,2 @@
func test():
const arr: Array[int] = ["Hello", "World"]
@@ -0,0 +1,2 @@
GDTEST_ANALYZER_ERROR
Assigned value for constant "arr" has type Array[String] which is not compatible with defined type Array[int].