2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/parser/ecmascript5/RegressionTests/parserNotHexLiteral1.ts(2,1): error TS2304: Cannot find name 'console'.
|
|
|
|
tests/cases/conformance/parser/ecmascript5/RegressionTests/parserNotHexLiteral1.ts(5,1): error TS2304: Cannot find name 'console'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parserNotHexLiteral1.ts (2 errors) ====
|
|
|
|
var x = {e0: 'cat', x0: 'dog'};
|
|
|
|
console.info (x.x0);
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'console'.
|
2014-07-13 01:04:16 +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.
|
|
|
|
console.info (x.e0);
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'console'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|