some test files added
This commit is contained in:
parent
868f8f8af7
commit
a4ba67dd2e
5 changed files with 116 additions and 0 deletions
11
tests/topenarrayrepr.nim
Executable file
11
tests/topenarrayrepr.nim
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
type
|
||||
TProc = proc (n: int, m: openarray[int64])
|
||||
|
||||
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]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue