godot/modules/gdscript/tests/scripts/runtime/features/typed_assignment.gd

func test():
	var x: int = 2
	var y = 3.14
	var z := 2.72
	print(typeof(x))
	x = y
	print(typeof(x))
	x = z
	print(typeof(x))