got rid of 'accept' dir in the tests
This commit is contained in:
parent
d0772feb08
commit
a274f3bf5b
264 changed files with 5 additions and 7 deletions
27
tests/run/toverl2.nim
Executable file
27
tests/run/toverl2.nim
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
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
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue