Implement RETURN_VALUE_DISCARDED warning in GDscript
This commit is contained in:
parent
042e81f663
commit
be1e9acb7c
4 changed files with 18 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1 +1,5 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 6
|
||||
>> RETURN_VALUE_DISCARDED
|
||||
>> The function 'i_return_int()' returns a value, but this value is never used.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue