TypeScript/tests/baselines/reference/parserNotHexLiteral1.js

15 lines
461 B
TypeScript

//// [parserNotHexLiteral1.ts]
var x = {e0: 'cat', x0: 'dog'};
console.info (x.x0);
// 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);
//// [parserNotHexLiteral1.js]
var x = { e0: 'cat', x0: 'dog' };
console.info(x.x0);
// 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);