Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Sep 25, 2024
1 parent 9d76c4c commit cce58f4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vlib/v/checker/tests/infix_dup_in_err.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
vlib/v/checker/tests/infix_dup_in_err.vv:1:16: error: the item `2` is duplicated in the list
1 | if 1 in [1, 2, 2, 2] { println('ok') }
| ^
2 |
3 | a := `a`
vlib/v/checker/tests/infix_dup_in_err.vv:4:20: error: the item `a` is duplicated in the list
2 |
3 | a := `a`
4 | if `a` in [`c`, a, a] { println('ok') }
| ^
5 |
6 | println('done')
6 changes: 6 additions & 0 deletions vlib/v/checker/tests/infix_dup_in_err.vv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if 1 in [1, 2, 2, 2] { println('ok') }

a := `a`
if `a` in [`c`, a, a] { println('ok') }

println('done')

0 comments on commit cce58f4

Please sign in to comment.