summary refs log tree commit diff stats
path: root/tests/ttempl2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ttempl2.nim')
-rwxr-xr-xtests/ttempl2.nim14
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'
-