Fix const typed array assignment

This commit is contained in:
Trioct
2022-05-22 06:50:25 -05:00
parent 4173a4735e
commit bcbfa641ec
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].