v2 / vlib / v / checker / tests / non_matching_functional_args.out
16 lines · 16 sloc · 769 bytes · e2e5cf8db56f3562c7baa735061690be936bdf3e
Raw
1vlib/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)
8Details: `main.MyFn`'s expected argument `zzzz` to be NOT a pointer, but the passed argument `t` is a pointer
9vlib/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 | }
16Details: `main.MyFn`'s expected argument `zzzz` to be NOT a pointer, but the passed argument `mytable` is a pointer
17