virtualx-engine/modules/gdscript/tests/scripts/analyzer/features/cast_non_null.gd

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
207 B
GDScript3
Raw Normal View History

2022-12-12 06:58:26 +01:00
# 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)