From c357776f58ad8d69022ac0f02f2caa09829edd02 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 29 Dec 2024 15:28:06 -0300 Subject: [PATCH] fix test --- .../tests/array_generic_methods_err.out | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/vlib/v/checker/tests/array_generic_methods_err.out b/vlib/v/checker/tests/array_generic_methods_err.out index 71192eeb525720..1d4108549535db 100644 --- a/vlib/v/checker/tests/array_generic_methods_err.out +++ b/vlib/v/checker/tests/array_generic_methods_err.out @@ -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 |