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:
@@ -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.
|
||||
Reference in New Issue
Block a user