diff options
author | Araq <rumpf_a@web.de> | 2015-04-07 00:06:39 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-04-07 00:06:39 +0200 |
commit | 82f8948a100f09bb14b8d466f82f3cc117dd5a06 (patch) | |
tree | 9a3aba1cc63523bee30696de23c25e8ae692540d /tests/template | |
parent | 5bb3534f1058d5b15f4a9488511d8e718ac7039b (diff) | |
download | Nim-82f8948a100f09bb14b8d466f82f3cc117dd5a06.tar.gz |
added system.typed and system.untyped aliases
Diffstat (limited to 'tests/template')
-rw-r--r-- | tests/template/ttempl2.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/template/ttempl2.nim b/tests/template/ttempl2.nim index 142bbb8c7..aaa2f1344 100644 --- a/tests/template/ttempl2.nim +++ b/tests/template/ttempl2.nim @@ -3,12 +3,12 @@ discard """ line: 18 errormsg: "undeclared identifier: \'b\'" """ -template declareInScope(x: expr, t: typeDesc): stmt {.immediate.} = +template declareInScope(x: untyped, t: typeDesc): untyped {.immediate.} = var x: t - -template declareInNewScope(x: expr, t: typeDesc): stmt {.immediate.} = + +template declareInNewScope(x: untyped, t: typeDesc): untyped {.immediate.} = # open a new scope: - block: + block: var x: t declareInScope(a, int) |