From 23c44f009a0d69f7f7f536687b5e3d18e0c370d3 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 2 Sep 2019 12:07:27 +0200 Subject: weaking unsigned/signed indexing requirements in order to not break too much existing code --- tests/range/trange.nim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/range') 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..