modules/gdscript/tests/scripts/analyzer/features/assymetric_assignment_good.gd
raw| 1 | const const_color: Color = 'red' |
| 2 | |
| 3 | func func_color(arg_color: Color = 'blue') -> bool: |
| 4 | return arg_color == Color.BLUE |
| 5 | |
| 6 | func test(): |
| 7 | Utils.check(const_color == Color.RED) |
| 8 | |
| 9 | Utils.check(func_color() == true) |
| 10 | Utils.check(func_color('blue') == true) |
| 11 | |
| 12 | var var_color: Color = 'green' |
| 13 | Utils.check(var_color == Color.GREEN) |
| 14 | |
| 15 | print('ok') |