Fix inability to assign null regression
Co-authored-by: Dmitry Maganov <vonagam@gmail.com>
This commit is contained in:
parent
6e0dd6beca
commit
9eb4d1e4bf
3 changed files with 35 additions and 19 deletions
|
|
@ -0,0 +1,15 @@
|
|||
extends Node
|
||||
|
||||
func test():
|
||||
var typed: Variant = get_node_or_null("does_not_exist")
|
||||
var untyped = null
|
||||
var node_1: Node = typed
|
||||
var node_2: Node = untyped
|
||||
var node_3 = typed
|
||||
var node_4 = untyped
|
||||
print(typed)
|
||||
print(untyped)
|
||||
print(node_1)
|
||||
print(node_2)
|
||||
print(node_3)
|
||||
print(node_4)
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
GDTEST_OK
|
||||
<Object#null>
|
||||
<null>
|
||||
<Object#null>
|
||||
<null>
|
||||
<Object#null>
|
||||
<null>
|
||||
Loading…
Add table
Add a link
Reference in a new issue