summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/analyzer/errors
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-04-24 16:43:32 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-04-24 16:43:32 +0200
commit54b0e8123ebd6c2f6d1d0eb547f03907bbd7e9f5 (patch)
treeabe568eee3e91391600df3331a0d8eccf726f5a1 /modules/gdscript/tests/scripts/analyzer/errors
parentee38afc350a2419d6ea1ab49549f33b7d2a4af82 (diff)
parent5d164df4e15a4e76feaa187053c05127a98225e1 (diff)
downloadredot-engine-54b0e8123ebd6c2f6d1d0eb547f03907bbd7e9f5.tar.gz
Merge pull request #75605 from anvilfolk/type-base
Make GDScript type not found errors more informative.
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/errors')
-rw-r--r--modules/gdscript/tests/scripts/analyzer/errors/prints_base_type_not_found.gd6
-rw-r--r--modules/gdscript/tests/scripts/analyzer/errors/prints_base_type_not_found.out2
2 files changed, 8 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/errors/prints_base_type_not_found.gd b/modules/gdscript/tests/scripts/analyzer/errors/prints_base_type_not_found.gd
new file mode 100644
index 0000000000..e56ae7b11d
--- /dev/null
+++ b/modules/gdscript/tests/scripts/analyzer/errors/prints_base_type_not_found.gd
@@ -0,0 +1,6 @@
+class InnerClass:
+ pass
+
+func test():
+ var x : InnerClass.DoesNotExist
+ print("FAIL")
diff --git a/modules/gdscript/tests/scripts/analyzer/errors/prints_base_type_not_found.out b/modules/gdscript/tests/scripts/analyzer/errors/prints_base_type_not_found.out
new file mode 100644
index 0000000000..29c75ae3c0
--- /dev/null
+++ b/modules/gdscript/tests/scripts/analyzer/errors/prints_base_type_not_found.out
@@ -0,0 +1,2 @@
+GDTEST_ANALYZER_ERROR
+Could not find type "DoesNotExist" under base "InnerClass".