7 lines
307 B
Plaintext
7 lines
307 B
Plaintext
==== tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode5.ts (2 errors) ====
|
|
"use strict";
|
|
eval += 1;
|
|
~~~~
|
|
!!! error TS1100: Invalid use of 'eval' in strict mode.
|
|
~~~~~~~~~
|
|
!!! error TS2365: Operator '+=' cannot be applied to types '(x: string) => any' and 'number'. |