virtualx-engine/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.

17 lines
352 B
GDScript3
Raw Normal View History

2023-01-22 09:32:05 +01:00
const const_color: Color = 'red'
func func_color(arg_color: Color = 'blue') -> bool:
return arg_color == Color.BLUE
@warning_ignore("assert_always_true")
func test():
assert(const_color == Color.RED)
assert(func_color() == true)
assert(func_color('blue') == true)
var var_color: Color = 'green'
assert(var_color == Color.GREEN)
print('ok')