From bc739a46878d06bd77fcb924a8bd079071057be0 Mon Sep 17 00:00:00 2001 From: George Marques Date: Fri, 30 Dec 2022 11:57:25 -0300 Subject: GDScript: Make using return of void function an error Remove the `VOID_ASSIGNMENT` warning since those cases will be errors now. --- modules/gdscript/tests/scripts/parser/warnings/void_assignment.gd | 6 ------ modules/gdscript/tests/scripts/parser/warnings/void_assignment.out | 5 ----- 2 files changed, 11 deletions(-) delete mode 100644 modules/gdscript/tests/scripts/parser/warnings/void_assignment.gd delete mode 100644 modules/gdscript/tests/scripts/parser/warnings/void_assignment.out (limited to 'modules/gdscript/tests/scripts/parser') diff --git a/modules/gdscript/tests/scripts/parser/warnings/void_assignment.gd b/modules/gdscript/tests/scripts/parser/warnings/void_assignment.gd deleted file mode 100644 index b4a42b3e3d..0000000000 --- a/modules/gdscript/tests/scripts/parser/warnings/void_assignment.gd +++ /dev/null @@ -1,6 +0,0 @@ -func i_return_void() -> void: - return - - -func test(): - var __ = i_return_void() diff --git a/modules/gdscript/tests/scripts/parser/warnings/void_assignment.out b/modules/gdscript/tests/scripts/parser/warnings/void_assignment.out deleted file mode 100644 index 84c9598f9a..0000000000 --- a/modules/gdscript/tests/scripts/parser/warnings/void_assignment.out +++ /dev/null @@ -1,5 +0,0 @@ -GDTEST_OK ->> WARNING ->> Line: 6 ->> VOID_ASSIGNMENT ->> Assignment operation, but the function 'i_return_void()' returns void. -- cgit v1.2.3