1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
=== tests/cases/conformance/parser/ecmascript5/RegressionTests/parserNotHexLiteral1.ts ===
var x = {e0: 'cat', x0: 'dog'};
>x : Symbol(x, Decl(parserNotHexLiteral1.ts, 0, 3))
>e0 : Symbol(e0, Decl(parserNotHexLiteral1.ts, 0, 9))
>x0 : Symbol(x0, Decl(parserNotHexLiteral1.ts, 0, 19))
console.info (x.x0);
>console.info : Symbol(Console.info, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>info : Symbol(Console.info, Decl(lib.dom.d.ts, --, --))
>x.x0 : Symbol(x0, Decl(parserNotHexLiteral1.ts, 0, 19))
>x : Symbol(x, Decl(parserNotHexLiteral1.ts, 0, 3))
>x0 : Symbol(x0, Decl(parserNotHexLiteral1.ts, 0, 19))
// tsc dies on this next line with "bug.ts (5,16): Expected ')'"
// tsc seems to be parsing the e0 as a hex constant.
console.info (x.e0);
>console.info : Symbol(Console.info, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>info : Symbol(Console.info, Decl(lib.dom.d.ts, --, --))
>x.e0 : Symbol(e0, Decl(parserNotHexLiteral1.ts, 0, 9))
>x : Symbol(x, Decl(parserNotHexLiteral1.ts, 0, 3))
>e0 : Symbol(e0, Decl(parserNotHexLiteral1.ts, 0, 9))
|