vq / vlib / v / checker / tests / ambiguous_function_call.out
29 lines · 29 sloc · 906 bytes · 81a5657604ec6da99c25e26546870c6888d6fdde
Raw
1vlib/v/checker/tests/ambiguous_function_call.vv:6:2: notice: variable `foo2` shadows a function declaration
2 4 |
3 5 | fn foo2() {
4 6 | foo2 := 1
5 | ~~~~
6 7 | foo2(foo2)
7 8 | }
8vlib/v/checker/tests/ambiguous_function_call.vv:2:2: error: ambiguous call to: `foo1`, may refer to fn `foo1` or variable `foo1`
9 1 | fn foo1(foo1 int) {
10 2 | foo1(foo1 + 1)
11 | ~~~~~~~~~~~~~~
12 3 | }
13 4 |
14vlib/v/checker/tests/ambiguous_function_call.vv:7:2: error: ambiguous call to: `foo2`, may refer to fn `foo2` or variable `foo2`
15 5 | fn foo2() {
16 6 | foo2 := 1
17 7 | foo2(foo2)
18 | ~~~~~~~~~~
19 8 | }
20 9 |
21vlib/v/checker/tests/ambiguous_function_call.vv:7:7: error: expected 0 arguments, but got 1
22 5 | fn foo2() {
23 6 | foo2 := 1
24 7 | foo2(foo2)
25 | ~~~~
26 8 | }
27 9 |
28Details: have (int)
29 want ()
30