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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
334 B
GDScript3
Raw Normal View History

2023-01-22 08:32:05 +00:00
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)
2023-01-22 08:32:05 +00:00
Utils.check(func_color() == true)
Utils.check(func_color('blue') == true)
2023-01-22 08:32:05 +00:00
var var_color: Color = 'green'
Utils.check(var_color == Color.GREEN)
2023-01-22 08:32:05 +00:00
print('ok')