summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests
diff options
context:
space:
mode:
authorDmitrii Maganov <vonagam@gmail.com>2023-02-09 00:31:40 +0200
committerDmitrii Maganov <vonagam@gmail.com>2023-02-09 00:31:40 +0200
commitcedc5fa823dc64bcf500c87e8fe20a423994796a (patch)
tree7711728f264b812e59d932211b465b9d98ce1c94 /modules/gdscript/tests
parent2572f6800aef09bd6ea96f3b1c7a999a962eecb7 (diff)
GDScript: Fix error about enum typed arrays
Diffstat (limited to 'modules/gdscript/tests')
-rw-r--r--modules/gdscript/tests/scripts/analyzer/features/typed_array_usage.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/features/typed_array_usage.gd b/modules/gdscript/tests/scripts/analyzer/features/typed_array_usage.gd
index 092ae49d00..4470fbde3e 100644
--- a/modules/gdscript/tests/scripts/analyzer/features/typed_array_usage.gd
+++ b/modules/gdscript/tests/scripts/analyzer/features/typed_array_usage.gd
@@ -200,6 +200,10 @@ func test():
assert(str(typed_enums) == '[391]')
assert(typed_enums.get_typed_builtin() == TYPE_INT)
+ const const_enums: Array[E] = []
+ assert(const_enums.get_typed_builtin() == TYPE_INT)
+ assert(const_enums.get_typed_class_name() == &'')
+
var a := A.new()
var typed_natives: Array[RefCounted] = [a]