GDScript: Avoid inferred types from giving hard errors

This commit is contained in:
George Marques
2021-09-17 11:52:30 -03:00
parent f701d9b0f7
commit 4e69341c01
3 changed files with 27 additions and 3 deletions
@@ -0,0 +1,9 @@
func inferred_parameter(param = null):
if param == null:
param = Node.new()
param.name = "Ok"
print(param.name)
param.free()
func test():
inferred_parameter()
@@ -0,0 +1,2 @@
GDTEST_OK
Ok