diff options
Diffstat (limited to 'tests/vm/tconstscope2.nim')
-rw-r--r-- | tests/vm/tconstscope2.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/vm/tconstscope2.nim b/tests/vm/tconstscope2.nim new file mode 100644 index 000000000..d858e96c2 --- /dev/null +++ b/tests/vm/tconstscope2.nim @@ -0,0 +1,5 @@ +const + a = (var x = 3; x) + # should we allow this? + b = x #[tt.Error + ^ undeclared identifier: 'x']# |