v2 / vlib / v / checker / tests / ambiguous_function_call.out
22 lines · 22 sloc · 698 bytes · fc72044b42db341e64f1f43dc4c06e7c7ce31c44
Raw
1vlib/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 |
7vlib/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 |
14vlib/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 |
21Details: have (int)
22 want ()
23