diff options
author | Jasper Jenkins <jasper.vs.jenkins@gmail.com> | 2019-06-18 05:16:33 -0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-06-18 14:16:33 +0200 |
commit | 8ee0f14ab6b8decffe8673dac4d761c352d8e31d (patch) | |
tree | 952363477abebe5af2c6a3181ef1bc3f683c0967 /tests/array/tidx_lit_err2.nim | |
parent | c99ce5051e7024319c2d600af8b218dfc997bde8 (diff) | |
download | Nim-8ee0f14ab6b8decffe8673dac4d761c352d8e31d.tar.gz |
literal array indices (#11424)
Diffstat (limited to 'tests/array/tidx_lit_err2.nim')
-rw-r--r-- | tests/array/tidx_lit_err2.nim | 5 |
1 files changed, 5 insertions, 0 deletions
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] |