v2 / vlib / v / checker / tests / generics_ref_array_arg_mismatch.out
13 lines · 13 sloc · 651 bytes · e2e5cf8db56f3562c7baa735061690be936bdf3e
Raw
1vlib/v/checker/tests/generics_ref_array_arg_mismatch.vv:22:27: error: cannot use `[]&MyStruct[f64]` as `[]MyStruct[f64]` in argument 1 to `do_it_wrong`
2 20 | }
3 21 | a := [&m]
4 22 | println(do_it_wrong[f64](a))
5 | ^
6 23 | println(Box[f64]{}.do_it_wrong(a))
7 24 | }
8vlib/v/checker/tests/generics_ref_array_arg_mismatch.vv:23:33: error: cannot use `[]&MyStruct[f64]` as `[]MyStruct[f64]` in argument 1 to `Box[f64].do_it_wrong`
9 21 | a := [&m]
10 22 | println(do_it_wrong[f64](a))
11 23 | println(Box[f64]{}.do_it_wrong(a))
12 | ^
13 24 | }
14