From 8ee0f14ab6b8decffe8673dac4d761c352d8e31d Mon Sep 17 00:00:00 2001 From: Jasper Jenkins Date: Tue, 18 Jun 2019 05:16:33 -0700 Subject: literal array indices (#11424) --- tests/array/tidx_lit_err2.nim | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/array/tidx_lit_err2.nim (limited to 'tests/array/tidx_lit_err2.nim') diff --git a/tests/array/tidx_lit_err2.nim b/tests/array/tidx_lit_err2.nim new file mode 100644 index 000000000..75f5f227b --- /dev/null +++ b/tests/array/tidx_lit_err2.nim @@ -0,0 +1,5 @@ +discard """ + errormsg: "expected ordinal value for array index, got '\"string\"'" + line: 5 +""" +let x = ["string": 0, "index": 1] -- cgit 1.4.1-2-gfad0