From 2a08739f3002a5ef765fd1ab5fec58e062bfa48c Mon Sep 17 00:00:00 2001 From: Dmitrii Maganov Date: Tue, 21 Feb 2023 23:00:29 +0200 Subject: GDScript: Fix error message for unfound type --- modules/gdscript/tests/scripts/analyzer/errors/not_found_type.gd | 3 +++ modules/gdscript/tests/scripts/analyzer/errors/not_found_type.out | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 modules/gdscript/tests/scripts/analyzer/errors/not_found_type.gd create mode 100644 modules/gdscript/tests/scripts/analyzer/errors/not_found_type.out (limited to 'modules/gdscript/tests') diff --git a/modules/gdscript/tests/scripts/analyzer/errors/not_found_type.gd b/modules/gdscript/tests/scripts/analyzer/errors/not_found_type.gd new file mode 100644 index 0000000000..1644295b38 --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/errors/not_found_type.gd @@ -0,0 +1,3 @@ +func test(): + var foo: Foo + print('not ok') diff --git a/modules/gdscript/tests/scripts/analyzer/errors/not_found_type.out b/modules/gdscript/tests/scripts/analyzer/errors/not_found_type.out new file mode 100644 index 0000000000..3f6c2d868d --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/errors/not_found_type.out @@ -0,0 +1,2 @@ +GDTEST_ANALYZER_ERROR +Could not find type "Foo" in the current scope. -- cgit v1.2.3