For examples like the following, removing the semi-colon will make the example parse.
let y = 'a'.ToString();
do ()
The presence of ';' prevents the scanner from inserting a dedent token required to close the declaration expression.
Expected result:
let y = 'a'.ToString();
do ()
should parse the same as:
let y = 'a'.ToString()
do ()
For examples like the following, removing the semi-colon will make the example parse.
The presence of
';'prevents the scanner from inserting adedenttoken required to close the declaration expression.Expected result:
should parse the same as: