summary refs log tree commit diff stats
path: root/tests/vm/tconstscope1.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vm/tconstscope1.nim')
-rw-r--r--tests/vm/tconstscope1.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/vm/tconstscope1.nim b/tests/vm/tconstscope1.nim
new file mode 100644
index 000000000..41c45a28f
--- /dev/null
+++ b/tests/vm/tconstscope1.nim
@@ -0,0 +1,5 @@
+# issue #5395
+
+const a = (var b = 3; b)
+echo b #[tt.Error
+     ^ undeclared identifier: 'b']#