From cedc5fa823dc64bcf500c87e8fe20a423994796a Mon Sep 17 00:00:00 2001 From: Dmitrii Maganov Date: Thu, 9 Feb 2023 00:31:40 +0200 Subject: GDScript: Fix error about enum typed arrays --- modules/gdscript/tests/scripts/analyzer/features/typed_array_usage.gd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/gdscript/tests') 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] -- cgit v1.2.3