Merge pull request #72546 from vonagam/fix-typed-array-can-reference

GDScript: Fix can_reference check for typed arrays
This commit is contained in:
Yuri Sizov
2023-02-06 23:32:47 +03:00
committed by GitHub
3 changed files with 25 additions and 24 deletions

View File

@@ -201,4 +201,10 @@ func test():
assert(typed_enums.get_typed_builtin() == TYPE_INT)
var a := A.new()
var typed_natives: Array[RefCounted] = [a]
var typed_scripts = Array(typed_natives, TYPE_OBJECT, "RefCounted", A)
assert(typed_scripts[0] == a)
print('ok')