summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/runtime/features/gdscript_utility_implicit_conversion.gd
blob: 59bdb6ecebe059d1b9cfd15ad056653c904c6ca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
func test():
	const COLOR = Color8(255, 0.0, false)
	var false_value := false
	@warning_ignore("narrowing_conversion")
	var color = Color8(255, 0.0, false_value)
	print(var_to_str(COLOR))
	print(var_to_str(color))

	var string := "Node"
	var string_name := &"Node"
	print(type_exists(string))
	print(type_exists(string_name))