Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Dec 29, 2024
1 parent 81f7f30 commit 6add4db
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions vlib/v/checker/tests/array_generic_methods_err.out
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
vlib/v/checker/tests/array_generic_methods_err.vv:4:23: error: cannot use `[]string` as `string` in argument 1 to `.contains()`
2 | fn generic_fn[T]() {
3 | mut arr := []T{}
4 | println(arr.contains(arr))
vlib/v/checker/tests/array_generic_methods_err.vv:3:23: error: cannot use `[]string` as `string` in argument 1 to `.contains()`
1 | fn generic_fn[T]() {
2 | mut arr := []T{}
3 | println(arr.contains(arr))
| ~~~
5 | arr.delete(arr)
6 | arr.index(arr)
vlib/v/checker/tests/array_generic_methods_err.vv:5:13: error: cannot use `[]string` as `int` in argument 1 to `.delete()`
3 | mut arr := []T{}
4 | println(arr.contains(arr))
5 | arr.delete(arr)
4 | arr.delete(arr)
5 | arr.index(arr)
vlib/v/checker/tests/array_generic_methods_err.vv:4:13: error: cannot use `[]string` as `int` in argument 1 to `.delete()`
2 | mut arr := []T{}
3 | println(arr.contains(arr))
4 | arr.delete(arr)
| ~~~
6 | arr.index(arr)
7 | }
vlib/v/checker/tests/array_generic_methods_err.vv:6:12: error: cannot use `[]string` as `string` in argument 1 to `.index()`
4 | println(arr.contains(arr))
5 | arr.delete(arr)
6 | arr.index(arr)
5 | arr.index(arr)
6 | }
vlib/v/checker/tests/array_generic_methods_err.vv:5:12: error: cannot use `[]string` as `string` in argument 1 to `.index()`
3 | println(arr.contains(arr))
4 | arr.delete(arr)
5 | arr.index(arr)
| ~~~
7 | }
8 |
6 | }
7 |

0 comments on commit 6add4db

Please sign in to comment.