2022-12-22 20:43:36 +00:00
|
|
|
func check(input: int) -> bool:
|
|
|
|
return input == 1
|
|
|
|
|
|
|
|
var recur = null
|
|
|
|
var prop = null
|
|
|
|
|
|
|
|
func check_arg(arg = null) -> void:
|
|
|
|
if arg != null:
|
2023-09-21 09:42:55 +00:00
|
|
|
@warning_ignore("unsafe_call_argument")
|
2022-12-22 20:43:36 +00:00
|
|
|
print(check(arg))
|
|
|
|
|
|
|
|
func check_recur() -> void:
|
|
|
|
if recur != null:
|
2023-09-21 09:42:55 +00:00
|
|
|
@warning_ignore("unsafe_call_argument")
|
2022-12-22 20:43:36 +00:00
|
|
|
print(check(recur))
|
|
|
|
else:
|
|
|
|
recur = 1
|
|
|
|
check_recur()
|
|
|
|
|
|
|
|
func test() -> void:
|
|
|
|
check_arg(1)
|
|
|
|
|
|
|
|
check_recur()
|
|
|
|
|
|
|
|
if prop == null:
|
|
|
|
set('prop', 1)
|
2023-09-21 09:42:55 +00:00
|
|
|
@warning_ignore("unsafe_call_argument")
|
2022-12-22 20:43:36 +00:00
|
|
|
print(check(prop))
|
|
|
|
set('prop', null)
|
|
|
|
|
|
|
|
var loop = null
|
|
|
|
while loop != 2:
|
|
|
|
if loop != null:
|
2023-09-21 09:42:55 +00:00
|
|
|
@warning_ignore("unsafe_call_argument")
|
2022-12-22 20:43:36 +00:00
|
|
|
print(check(loop))
|
|
|
|
loop = 1 if loop == null else 2
|