diff options
Diffstat (limited to 'tests/template/ttempl2.nim')
-rw-r--r-- | tests/template/ttempl2.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/template/ttempl2.nim b/tests/template/ttempl2.nim index eb67bea0c..e84e0630b 100644 --- a/tests/template/ttempl2.nim +++ b/tests/template/ttempl2.nim @@ -3,10 +3,10 @@ discard """ file: "ttempl2.nim" line: 18 """ -template declareInScope(x: untyped, t: typeDesc): untyped {.immediate.} = +template declareInScope(x: untyped, t: typeDesc): untyped = var x: t -template declareInNewScope(x: untyped, t: typeDesc): untyped {.immediate.} = +template declareInNewScope(x: untyped, t: typeDesc): untyped = # open a new scope: block: var x: t |