diff options
Diffstat (limited to 'tests/errmsgs/tstaticexprscope.nim')
-rw-r--r-- | tests/errmsgs/tstaticexprscope.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/errmsgs/tstaticexprscope.nim b/tests/errmsgs/tstaticexprscope.nim new file mode 100644 index 000000000..6969e389e --- /dev/null +++ b/tests/errmsgs/tstaticexprscope.nim @@ -0,0 +1,11 @@ +discard """ + errormsg: "undeclared identifier: 'z'" + line: 11 +""" + +# Open a new scope for static expr blocks +block: + let a = static: + var z = 123 + 33 + echo z |