Merge pull request #70656 from vonagam/fix-void-returns

GDScript: Disallow return with value in void functions
This commit is contained in:
Rémi Verschelde 2023-01-03 12:20:33 +01:00
commit e4c1103af4
No known key found for this signature in database
GPG key ID: C3336907360768E1
7 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,5 @@
func variant() -> Variant:
return 'variant'
func test():
print(variant())

View file

@ -0,0 +1,2 @@
GDTEST_OK
variant