1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-30 16:26:50 +00:00

GDScript: Fix UNSAFE_CALL_ARGUMENT warning for Variant constructors

This commit is contained in:
Danil Alexeev
2023-09-29 22:43:56 +03:00
parent 19890614c6
commit ba96d4f631
5 changed files with 78 additions and 24 deletions

View File

@@ -24,7 +24,6 @@ func test():
print(StringName("hello"))
print(NodePath("hello/world"))
var node := Node.new()
@warning_ignore("unsafe_call_argument")
print(RID(node)) # TODO: Why is the constructor (or implicit cast) not documented?
print(node.get_name)
print(node.property_list_changed)