Debian Codegraph @

modules/gdscript/tests/scripts/runtime/features/use_conversion_assign_with_variant_value.gd

raw
1 # https://github.com/godotengine/godot/issues/71172
2
3 func test():
4 @warning_ignore("narrowing_conversion")
5 var foo: int = 0.0
6 print(typeof(foo) == TYPE_INT)
7 var dict: Dictionary = {"a": 0.0}
8 foo = dict.get("a")
9 print(typeof(foo) == TYPE_INT)