TypeScript/tests/baselines/reference/parserNotHexLiteral1.js

17 lines
472 B
JavaScript

//// [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);