diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-09-02 22:03:10 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-09-02 22:03:10 +0200 |
commit | ac6fcab7a4fc79ba0ca45f531ad5f4f213e9d4e7 (patch) | |
tree | 54f03ebd8539f4562d4e2f077d67812aea854889 /tests/range | |
parent | d70e292571754f1c00baf9651c558378537cdba8 (diff) | |
parent | 5a03eea518ba3cfeaa9f57ef0b6f1cf7bc8ed1d9 (diff) | |
download | Nim-ac6fcab7a4fc79ba0ca45f531ad5f4f213e9d4e7.tar.gz |
Merge branch 'devel' into uint-range-checks
Diffstat (limited to 'tests/range')
-rw-r--r-- | tests/range/trange.nim | 6 |
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" |