Merge pull request #69991 from rune-scape/cast-type

GDScript: Fix cast producing null
This commit is contained in:
Rémi Verschelde
2022-12-23 09:22:21 +01:00
3 changed files with 25 additions and 12 deletions

View File

@@ -0,0 +1,5 @@
# 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)

View File

@@ -0,0 +1,3 @@
GDTEST_OK
cast to Variant == null: false
cast to Object == null: false