You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
GDScript: Fix use of conversion assign for variant values
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# https://github.com/godotengine/godot/issues/71172
|
||||
|
||||
func test():
|
||||
@warning_ignore(narrowing_conversion)
|
||||
var foo: int = 0.0
|
||||
print(typeof(foo) == TYPE_INT)
|
||||
var dict : Dictionary = {"a":0.0}
|
||||
foo = dict.get("a")
|
||||
print(typeof(foo) == TYPE_INT)
|
||||
@@ -0,0 +1,3 @@
|
||||
GDTEST_OK
|
||||
true
|
||||
true
|
||||
Reference in New Issue
Block a user