GDScript: Fix can_reference check for typed arrays
This commit is contained in:
parent
47c3e3b781
commit
8400308ab3
3 changed files with 25 additions and 24 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue