GDScript: Fix "Identifier not found" error when accessing inner class from inside
This commit is contained in:
parent
7df393312f
commit
fb45cab133
3 changed files with 29 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
# GH-80508
|
||||
|
||||
class A:
|
||||
func a():
|
||||
return A.new()
|
||||
func b():
|
||||
return B.new()
|
||||
|
||||
class B:
|
||||
func a():
|
||||
return A.new()
|
||||
func b():
|
||||
return B.new()
|
||||
|
||||
func test():
|
||||
var a := A.new()
|
||||
var b := B.new()
|
||||
print(a.a() is A)
|
||||
print(a.b() is B)
|
||||
print(b.a() is A)
|
||||
print(b.b() is B)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
GDTEST_OK
|
||||
true
|
||||
true
|
||||
true
|
||||
true
|
||||
Loading…
Add table
Add a link
Reference in a new issue