summary refs log tree commit diff stats
path: root/tests/run/toverl2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/toverl2.nim')
-rwxr-xr-xtests/run/toverl2.nim27
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/run/toverl2.nim b/tests/run/toverl2.nim
deleted file mode 100755
index 49b17da4d..000000000
--- a/tests/run/toverl2.nim
+++ /dev/null
@@ -1,27 +0,0 @@
-discard """
-  file: "toverl2.nim"
-  output: "true012"
-"""
-# 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 = toverl2
-stdout.write(pp(true))
-for x in toverl2(3): 
-  stdout.write(toverl2(x))
-stdout.write("\n")
-#OUT true012
-
-
-