14 lines
461 B
JavaScript
14 lines
461 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);
|