mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
GDScript: Fix type for index subscript on constant
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
const base := [0]
|
||||
|
||||
func test():
|
||||
var sub := base[0]
|
||||
if sub is String: pass
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
Expression is of type "int" so it can't be of type "String".
|
||||
Reference in New Issue
Block a user