v2 / vlib / v / checker / tests / ambiguous_function_call.vv
13 lines · 11 sloc · 108 bytes · 684d2e6dbf31446c9f48cda0def626cbfef3422c
Raw
1fn foo1(foo1 int) {
2 foo1(foo1 + 1)
3}
4
5fn foo2() {
6 foo2 := 1
7 foo2(foo2)
8}
9
10fn main() {
11 foo1(5)
12 foo2()
13}
14