1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00
Files
godot/modules/gdscript/tests/scripts/analyzer/features/assymetric_assignment_good.gd
2024-08-28 17:41:52 +03:00

16 lines
334 B
GDScript

const const_color: Color = 'red'
func func_color(arg_color: Color = 'blue') -> bool:
return arg_color == Color.BLUE
func test():
Utils.check(const_color == Color.RED)
Utils.check(func_color() == true)
Utils.check(func_color('blue') == true)
var var_color: Color = 'green'
Utils.check(var_color == Color.GREEN)
print('ok')