aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/v/checker/tests/ambiguous_function_call.vv
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/vlib/v/checker/tests/ambiguous_function_call.vv')
-rw-r--r--v_windows/v/vlib/v/checker/tests/ambiguous_function_call.vv13
1 files changed, 13 insertions, 0 deletions
diff --git a/v_windows/v/vlib/v/checker/tests/ambiguous_function_call.vv b/v_windows/v/vlib/v/checker/tests/ambiguous_function_call.vv
new file mode 100644
index 0000000..2d21224
--- /dev/null
+++ b/v_windows/v/vlib/v/checker/tests/ambiguous_function_call.vv
@@ -0,0 +1,13 @@
+fn foo1(foo1 int) {
+ foo1(foo1 + 1)
+}
+
+fn foo2() {
+ foo2 := 1
+ foo2(foo2)
+}
+
+fn main() {
+ foo1(5)
+ foo2()
+}