diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-21 23:36:29 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-21 23:36:29 +0100 |
commit | 56622b8ec348a1d52f94d58a783c24a9e2ccd85f (patch) | |
tree | e598ec17e547bed204c809914148231443770895 /modules/gdscript/tests/scripts/analyzer | |
parent | d4bec5855e8a2987f83a8bb491a5675287d460c3 (diff) | |
parent | 2a08739f3002a5ef765fd1ab5fec58e062bfa48c (diff) |
Merge pull request #73709 from vonagam/fix-error-message-unfound-type
GDScript: Fix error message for unfound type
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer')
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/errors/not_found_type.gd | 3 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/errors/not_found_type.out | 2 |
2 files changed, 5 insertions, 0 deletions
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. |