1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/tests/reserved_keywords_can_be_escaped_with_at_test.v

14 lines
282 B
V

fn test_reserved_keywords() {
@continue := 'abc'
@sizeof := 'def'
@union := 'xyz'
assert [@continue, @sizeof, @union] == ['abc', 'def', 'xyz']
}
fn test_duplicated_name() {
// should just compile
// @for was compiled to v_for before, now it's _v_for
@for := 0
v_for := 0
}