literal array indices (#11424)

This commit is contained in:
Jasper Jenkins 2019-06-18 05:16:33 -07:00 • committed by Andreas Rumpf
commit 8ee0f14ab6
5 changed files with 44 additions and 4 deletions

View file

@ -0,0 +1,5 @@
discard """
errormsg: "expected ordinal value for array index, got '\"string\"'"
line: 5
"""
let x = ["string": 0, "index": 1]