1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
//// [tests/cases/conformance/parser/ecmascript5/RegressionTests/parserNotHexLiteral1.ts] ////
//// [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);
|