aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/v/tests/inout/fixed_array_index.vv
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/vlib/v/tests/inout/fixed_array_index.vv')
-rw-r--r--v_windows/v/vlib/v/tests/inout/fixed_array_index.vv4
1 files changed, 4 insertions, 0 deletions
diff --git a/v_windows/v/vlib/v/tests/inout/fixed_array_index.vv b/v_windows/v/vlib/v/tests/inout/fixed_array_index.vv
new file mode 100644
index 0000000..15fef60
--- /dev/null
+++ b/v_windows/v/vlib/v/tests/inout/fixed_array_index.vv
@@ -0,0 +1,4 @@
+a := [1,2]!
+println(a[0])
+i := 2
+_ = a[i]