eldritch horrors
314f044c2b
the parser modifies its inputs, which means that sharing them between
the error context reporting system and the parser itself can confuse the
reporting system. usually this led to early truncation of error context
reports which, while not dangerous, can be quite confusing.
(cherry picked from commit d384ecd553aa997270b79ee98d02f7cf7e1849e6)
Change-Id: I677646b5675b12b2faa787943646aa36dc6e6ee3
7 lines
196 B
Plaintext
7 lines
196 B
Plaintext
error: syntax error, unexpected ':', expecting '}'
|
|
at «stdin»:3:13:
|
|
2|
|
|
3| f = {x, y : ["baz" "bar" z "bat"]}: x + y;
|
|
| ^
|
|
4|
|