2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/parser/ecmascript5/parserNotRegex1.ts(1,7): error TS2304: Cannot find name 'a'.
|
2014-12-17 00:56:56 +01:00
|
|
|
tests/cases/conformance/parser/ecmascript5/parserNotRegex1.ts(3,5): error TS1108: A 'return' statement can only be used within a function body.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/parser/ecmascript5/parserNotRegex1.ts (2 errors) ====
|
|
|
|
if (a.indexOf(-(4/3))) // We should not get a regex here becuase of the / in the comment.
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'a'.
|
2014-07-13 01:04:16 +02:00
|
|
|
{
|
|
|
|
return true;
|
2014-07-23 01:36:53 +02:00
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1108: A 'return' statement can only be used within a function body.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|