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
commit 945207885b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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')