| 1 | vlib/v/checker/tests/non_matching_functional_args.vv:27:6: error: cannot use `fn (mut Table)` as `fn (Table)` in argument 1 to `sum` |
| 2 | 25 | |
| 3 | 26 | fn main() { |
| 4 | 27 | sum(fn (mut t Table) { |
| 5 | | ~~~~~~~~~~~~~~~~~~ |
| 6 | 28 | t.rename() |
| 7 | 29 | println(t.name) |
| 8 | Details: `main.MyFn`'s expected argument `zzzz` to be NOT a pointer, but the passed argument `t` is a pointer |
| 9 | vlib/v/checker/tests/non_matching_functional_args.vv:31:6: error: cannot use `fn (mut Table)` as `fn (Table)` in argument 1 to `sum` |
| 10 | 29 | println(t.name) |
| 11 | 30 | }) |
| 12 | 31 | sum(xxx) |
| 13 | | ~~~ |
| 14 | 32 | sum(yyy) |
| 15 | 33 | } |
| 16 | Details: `main.MyFn`'s expected argument `zzzz` to be NOT a pointer, but the passed argument `mytable` is a pointer |
| 17 | |