summary refs log tree commit diff stats
path: root/tests/range
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-09-02 22:03:10 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-09-02 22:03:10 +0200
commitac6fcab7a4fc79ba0ca45f531ad5f4f213e9d4e7 (patch)
tree54f03ebd8539f4562d4e2f077d67812aea854889 /tests/range
parentd70e292571754f1c00baf9651c558378537cdba8 (diff)
parent5a03eea518ba3cfeaa9f57ef0b6f1cf7bc8ed1d9 (diff)
downloadNim-ac6fcab7a4fc79ba0ca45f531ad5f4f213e9d4e7.tar.gz
Merge branch 'devel' into uint-range-checks
Diffstat (limited to 'tests/range')
-rw-r--r--tests/range/trange.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/range/trange.nim b/tests/range/trange.nim
index aac967777..c864387f6 100644
--- a/tests/range/trange.nim
+++ b/tests/range/trange.nim
@@ -136,3 +136,9 @@ block:
     const x11: range[0'f..1'f] = 2'f
   reject:
     const x12: range[0'f..1'f] = 2
+
+# ensure unsigned array indexing is remains lenient:
+var a: array[4'u, string]
+
+for i in 0..<a.len:
+  a[i] = "foo"