2020-12-29 16:14:08 +01:00
|
|
|
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`
|
2020-12-10 15:42:30 +01:00
|
|
|
25 |
|
|
|
|
26 | fn main() {
|
|
|
|
27 | sum(fn (mut t Table) {
|
|
|
|
| ~~~~~~~~~~~~~~~~~~
|
2020-07-04 20:19:34 +02:00
|
|
|
28 | t.rename()
|
|
|
|
29 | println(t.name)
|
2021-01-30 09:20:09 +01:00
|
|
|
Details: `main.MyFn`'s expected fn argument: `zzzz` is NOT a pointer, but the passed fn argument: `t` is a pointer
|
2020-12-29 16:14:08 +01:00
|
|
|
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`
|
2020-07-04 20:19:34 +02:00
|
|
|
29 | println(t.name)
|
|
|
|
30 | })
|
|
|
|
31 | sum(xxx)
|
2020-12-10 15:42:30 +01:00
|
|
|
| ~~~
|
2020-07-04 20:19:34 +02:00
|
|
|
32 | sum(yyy)
|
|
|
|
33 | }
|
2021-01-30 09:20:09 +01:00
|
|
|
Details: `main.MyFn`'s expected fn argument: `zzzz` is NOT a pointer, but the passed fn argument: `mytable` is a pointer
|