diff options
Diffstat (limited to 'tests/ttempl2.nim')
-rwxr-xr-x | tests/ttempl2.nim | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/ttempl2.nim b/tests/ttempl2.nim deleted file mode 100755 index fba6bd0cb..000000000 --- a/tests/ttempl2.nim +++ /dev/null @@ -1,14 +0,0 @@ -template declareInScope(x: expr, t: typeDesc): stmt = - var x: t - -template declareInNewScope(x: expr, t: typeDesc): stmt = - # open a new scope: - block: - var x: t - -declareInScope(a, int) -a = 42 # works, `a` is known here - -declareInNewScope(b, int) -b = 42 #ERROR_MSG undeclared identifier: 'b' - |