Files
Nim/tests/run/topenarrayrepr.nim
2012-07-17 01:27:25 +02:00

18 lines
274 B
Nim
Executable File

discard """
file: "topenarrayrepr.nim"
output: "5 - [1]"
"""
type
TProc = proc (n: int, m: openarray[int64]) {.nimcall.}
proc Foo(x: int, P: TProc) =
P(x, [ 1'i64 ])
proc Bar(n: int, m: openarray[int64]) =
echo($n & " - " & repr(m))
Foo(5, Bar) #OUT 5 - [1]