2014-07-13 01:04:16 +02:00
|
|
|
//// [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);
|
2014-08-16 00:49:09 +02:00
|
|
|
// tsc dies on this next line with "bug.ts (5,16): Expected ')'"
|
|
|
|
// tsc seems to be parsing the e0 as a hex constant.
|
2014-07-13 01:04:16 +02:00
|
|
|
console.info(x.e0);
|