| 1 | vlib/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 | } |
| 8 | vlib/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 | |