start of tests refactoring; sqlite3 new wrapper fixes
This commit is contained in:
parent
6bc16904ed
commit
d913fdb280
173 changed files with 206 additions and 238 deletions
11
tests/accept/run/topenarrayrepr.nim
Normal file
11
tests/accept/run/topenarrayrepr.nim
Normal 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