aboutsummaryrefslogtreecommitdiff
path: root/tests/langerrors/const_index.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/langerrors/const_index.zc')
-rw-r--r--tests/langerrors/const_index.zc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/langerrors/const_index.zc b/tests/langerrors/const_index.zc
index 03e927b..ea99986 100644
--- a/tests/langerrors/const_index.zc
+++ b/tests/langerrors/const_index.zc
@@ -1,2 +1,4 @@
+namespace;
+
// expect: the index is out of range for this array
-fn main() { [4]int a; a[4] = 1; return 0; }
+fn main() { int[4] a; a[4] = 1; return 0; }