| 1 | vlib/v/checker/tests/ambiguous_function_call.vv:2:2: error: ambiguous call to: `foo1`, may refer to fn `foo1` or variable `foo1` |
| 2 | 1 | fn foo1(foo1 int) { |
| 3 | 2 | foo1(foo1 + 1) |
| 4 | | ~~~~~~~~~~~~~~ |
| 5 | 3 | } |
| 6 | 4 | |
| 7 | vlib/v/checker/tests/ambiguous_function_call.vv:7:2: error: ambiguous call to: `foo2`, may refer to fn `foo2` or variable `foo2` |
| 8 | 5 | fn foo2() { |
| 9 | 6 | foo2 := 1 |
| 10 | 7 | foo2(foo2) |
| 11 | | ~~~~~~~~~~ |
| 12 | 8 | } |
| 13 | 9 | |
| 14 | vlib/v/checker/tests/ambiguous_function_call.vv:7:7: error: expected 0 arguments, but got 1 |
| 15 | 5 | fn foo2() { |
| 16 | 6 | foo2 := 1 |
| 17 | 7 | foo2(foo2) |
| 18 | | ~~~~ |
| 19 | 8 | } |
| 20 | 9 | |
| 21 | Details: have (int) |
| 22 | want () |
| 23 | |