diff options
author | Adam Scott <ascott.ca@gmail.com> | 2022-12-17 17:53:49 -0500 |
---|---|---|
committer | Adam Scott <ascott.ca@gmail.com> | 2022-12-17 17:57:00 -0500 |
commit | 1bbb2b415997cceaf292c796c28de2761ad40960 (patch) | |
tree | 59b99d94c85e88bf7a6ce3d39ed840c9471b32c6 /modules/gdscript/tests/scripts/analyzer | |
parent | d44d0cc0fd543da143010ad96978951facd87c1e (diff) |
Fix outer class lookup
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer')
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/errors/outer_class_lookup.gd | 12 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/errors/outer_class_lookup.out | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/errors/outer_class_lookup.gd b/modules/gdscript/tests/scripts/analyzer/errors/outer_class_lookup.gd new file mode 100644 index 0000000000..65c0d9dabc --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/errors/outer_class_lookup.gd @@ -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() diff --git a/modules/gdscript/tests/scripts/analyzer/errors/outer_class_lookup.out b/modules/gdscript/tests/scripts/analyzer/errors/outer_class_lookup.out new file mode 100644 index 0000000000..6baed366f6 --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/errors/outer_class_lookup.out @@ -0,0 +1,2 @@ +GDTEST_ANALYZER_ERROR +Cannot find member "D" in base "B". |