From be1e9acb7cf8d14b3aa21ee34f6c08625743e1d3 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Thu, 13 Oct 2022 10:31:12 -0700 Subject: Implement RETURN_VALUE_DISCARDED warning in GDscript --- modules/gdscript/tests/scripts/parser/features/class.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/gdscript/tests/scripts/parser/features') diff --git a/modules/gdscript/tests/scripts/parser/features/class.gd b/modules/gdscript/tests/scripts/parser/features/class.gd index 6652f85ad9..af24b32322 100644 --- a/modules/gdscript/tests/scripts/parser/features/class.gd +++ b/modules/gdscript/tests/scripts/parser/features/class.gd @@ -21,5 +21,5 @@ func test(): assert(test_sub.number == 25) # From Test. assert(test_sub.other_string == "bye") # From TestSub. - TestConstructor.new() - TestConstructor.new(500) + var _test_constructor = TestConstructor.new() + _test_constructor = TestConstructor.new(500) -- cgit v1.2.3