9 lines
347 B
Plaintext
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.
|
|
} |