diff options
Diffstat (limited to 'tests/macros')
-rw-r--r-- | tests/macros/tdebugstmt.nim | 2 | ||||
-rw-r--r-- | tests/macros/tvtable.nim | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/macros/tdebugstmt.nim b/tests/macros/tdebugstmt.nim index 740ae7b05..69e610075 100644 --- a/tests/macros/tdebugstmt.nim +++ b/tests/macros/tdebugstmt.nim @@ -21,7 +21,7 @@ macro debug(n: varargs[untyped]): untyped = add(result, newCall("writeLine", newIdentNode("stdout"), n[i])) var - a: array [0..10, int] + a: array[0..10, int] x = "some string" a[0] = 42 a[1] = 45 diff --git a/tests/macros/tvtable.nim b/tests/macros/tvtable.nim index cc5d7a5d9..dc07a726b 100644 --- a/tests/macros/tvtable.nim +++ b/tests/macros/tvtable.nim @@ -58,10 +58,10 @@ proc create(T: typedesc): T = result.vtbl = getVTable(T) proc baseFoo(o: var TBase): int = - return cast[fooProc[TBase]](o.vtbl[0]) (o) + return cast[fooProc[TBase]](o.vtbl[0])(o) proc baseBar(o: var TBase) = - cast[barProc[TBase]](o.vtbl[1]) (o) + cast[barProc[TBase]](o.vtbl[1])(o) var a = TUserObject1.create var b = TUserObject2.create |