9 lines
No EOL
347 B
Text
9 lines
No EOL
347 B
Text
==== 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.
|
|
} |