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:
George Marques
2022-12-30 11:57:25 -03:00
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.