GDScript: Make using return of void function an error
Remove the `VOID_ASSIGNMENT` warning since those cases will be errors now.
This commit is contained in:
parent
0c15844551
commit
bc739a4687
16 changed files with 38 additions and 35 deletions
|
|
@ -1,6 +0,0 @@
|
|||
func i_return_void() -> void:
|
||||
return
|
||||
|
||||
|
||||
func test():
|
||||
var __ = i_return_void()
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 6
|
||||
>> VOID_ASSIGNMENT
|
||||
>> Assignment operation, but the function 'i_return_void()' returns void.
|
||||
Loading…
Add table
Add a link
Reference in a new issue