summary refs log tree commit diff stats
path: root/tests/range
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-09-02 12:07:27 +0200
committerAraq <rumpf_a@web.de>2019-09-02 12:07:36 +0200
commit23c44f009a0d69f7f7f536687b5e3d18e0c370d3 (patch)
treee1895d711710bfffb2b5f6d62b836179da7db903 /tests/range
parent3d4ad9739cb2055bb037e9795fae7e015dc186e4 (diff)
downloadNim-23c44f009a0d69f7f7f536687b5e3d18e0c370d3.tar.gz
weaking unsigned/signed indexing requirements in order to not break too much existing code
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"