Fix const typed array assignment
This commit is contained in:
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].
|
||||
Loading…
Add table
Add a link
Reference in a new issue