godot/modules/gdscript/tests/scripts/analyzer/features/weak_initializer.gd

6 lines
89 B
GDScript

func test():
var bar = 1
var foo: float = bar
print(typeof(foo))
print(foo is float)