virtualx-engine/modules/gdscript/tests/scripts/analyzer/features/cast_non_null.gd
2022-12-12 19:57:26 -05:00

5 lines
207 B
GDScript

# https://github.com/godotengine/godot/issues/69504#issuecomment-1345725988
func test():
print("cast to Variant == null: ", 1 as Variant == null)
print("cast to Object == null: ", self as Object == null)