TypeScript/tests/baselines/reference/parserNotRegex1.errors.txt
2014-07-23 12:07:46 -07:00

9 lines
347 B
Plaintext

==== 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.
~
!!! Cannot find name 'a'.
{
return true;
~~~~~~
!!! A 'return' statement can only be used within a function body.
}