You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Merge pull request #72925 from vonagam/fix-enum-typed-array-error
GDScript: Fix error about enum typed arrays
This commit is contained in:
@@ -201,6 +201,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]
|
||||
|
||||
Reference in New Issue
Block a user