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']#
2-11-23 00:19:29 +0000 Allocate memory for windows when needed' href='/danisanti/profani-tty/commit/src/window.c?id=2a69f8d23f8e3e120604560818d86658ee66f088'>2a69f8d2 ^
9d34c412 ^
fc5bfb7d ^
2a69f8d2 ^





























1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66