>>> var l = list()
>>> l.append(1)
>>> l[1]
Runtime Error: tried to access index 1, but valid range is [0..0] or [-1..-1]
[line 1, token: 'at']
the last error is expected to say [line 1, token: '[']; the current message happens because internally, index access is desugared to the list.at function, but this can be quite confusing for users.
consider the following code:
the last error is expected to say
[line 1, token: '[']
; the current message happens because internally, index access is desugared to thelist.at
function, but this can be quite confusing for users.