initial commit, 4.5 stable
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# We don't want to execute it because of errors, just analyze.
|
||||
func no_exec_test():
|
||||
var weak_int = 1
|
||||
print(weak_int as Variant) # No warning.
|
||||
print(weak_int as int)
|
||||
print(weak_int as Node)
|
||||
|
||||
var weak_node = Node.new()
|
||||
print(weak_node as Variant) # No warning.
|
||||
print(weak_node as int)
|
||||
print(weak_node as Node)
|
||||
|
||||
var weak_variant = null
|
||||
print(weak_variant as Variant) # No warning.
|
||||
print(weak_variant as int)
|
||||
print(weak_variant as Node)
|
||||
|
||||
var hard_variant: Variant = null
|
||||
print(hard_variant as Variant) # No warning.
|
||||
print(hard_variant as int)
|
||||
print(hard_variant as Node)
|
||||
|
||||
func test():
|
||||
pass
|
Reference in New Issue
Block a user