Fix outer class lookup
This commit is contained in:
parent
d44d0cc0fd
commit
1bbb2b4159
3 changed files with 15 additions and 1 deletions
|
|
@ -0,0 +1,12 @@
|
|||
class A:
|
||||
class B:
|
||||
func test():
|
||||
print(A.B.D)
|
||||
|
||||
class C:
|
||||
class D:
|
||||
pass
|
||||
|
||||
func test():
|
||||
var inst = A.B.new()
|
||||
inst.test()
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_ANALYZER_ERROR
|
||||
Cannot find member "D" in base "B".
|
||||
Loading…
Add table
Add a link
Reference in a new issue