summary refs log tree commit diff stats
path: root/tests/overload/toverl2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/overload/toverl2.nim')
-rw-r--r--tests/overload/toverl2.nim33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/overload/toverl2.nim b/tests/overload/toverl2.nim
deleted file mode 100644
index 54714ac1b..000000000
--- a/tests/overload/toverl2.nim
+++ /dev/null
@@ -1,33 +0,0 @@
-discard """
-  file: "toverl2.nim"
-  output: "true012innertrue"
-"""
-# Test new overloading resolution rules
-
-import strutils
-
-proc toverl2(x: int): string = return $x
-proc toverl2(x: bool): string = return $x
-
-iterator toverl2(x: int): int =
-  var res = 0
-  while res < x:
-    yield res
-    inc(res)
-
-var
-  pp: proc (x: bool): string {.nimcall.} = toverl2
-
-stdout.write(pp(true))
-
-for x in toverl2(3):
-  stdout.write(toverl2(x))
-
-block:
-  proc toverl2(x: int): string = return "inner"
-  stdout.write(toverl2(5))
-  stdout.write(true)
-
-stdout.write("\n")
-#OUT true012innertrue
-