From 82f8948a100f09bb14b8d466f82f3cc117dd5a06 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 7 Apr 2015 00:06:39 +0200 Subject: added system.typed and system.untyped aliases --- tests/template/ttempl2.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/template') 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) -- cgit 1.4.1-2-gfad0