GDScript: Fix typed array with custom classes

This commit is contained in:
George Marques 2021-10-12 10:41:04 -03:00
parent b67e68bce3
commit 34288b24a6
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D
3 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,10 @@
class Inner:
var prop = "Inner"
var array: Array[Inner] = [Inner.new()]
func test():
var element: Inner = array[0]
print(element.prop)

View file

@ -0,0 +1,2 @@
GDTEST_OK
Inner