diff options
Diffstat (limited to 'tests/global/t5958.nim')
-rw-r--r-- | tests/global/t5958.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/global/t5958.nim b/tests/global/t5958.nim new file mode 100644 index 000000000..5abcad4a9 --- /dev/null +++ b/tests/global/t5958.nim @@ -0,0 +1,9 @@ +discard """ + line: 9 + errormsg: "undeclared identifier: 'a'" +""" + +static: + var a = 1 + +echo a |