diff options
Diffstat (limited to 'tests/template/tparamscope.nim')
-rw-r--r-- | tests/template/tparamscope.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/template/tparamscope.nim b/tests/template/tparamscope.nim new file mode 100644 index 000000000..177c682cf --- /dev/null +++ b/tests/template/tparamscope.nim @@ -0,0 +1,10 @@ +discard """ + errormsg: "undeclared identifier: 'a'" + line: 10 +""" + + +template secondArg(a, b: typed): untyped = + b + +echo secondArg((var a = 1; 1), a) |