Support Array and PackedArray in @export_*

This commit is contained in:
Abel Toy
2023-10-07 19:32:08 +09:00
parent f2045ba822
commit 882441a0ad
14 changed files with 470 additions and 73 deletions
@@ -0,0 +1,4 @@
@export_enum("A", "B", "C") var x: Array[Color]
func test():
pass
@@ -0,0 +1,2 @@
GDTEST_ANALYZER_ERROR
"@export_enum" annotation requires a variable of type "int", "Array[int]", "PackedByteArray", "PackedInt32Array", "PackedInt64Array", "String", "Array[String]", or "PackedStringArray", but type "Array[Color]" was given instead.
@@ -0,0 +1,4 @@
@export_enum("A", "B", "C") var x: Color
func test():
pass
@@ -0,0 +1,2 @@
GDTEST_ANALYZER_ERROR
"@export_enum" annotation requires a variable of type "int", "Array[int]", "PackedByteArray", "PackedInt32Array", "PackedInt64Array", "String", "Array[String]", or "PackedStringArray", but type "Color" was given instead.