TypeScript/tests/baselines/reference/parserStrictMode5.errors.txt

11 lines
617 B
Plaintext
Raw Normal View History

tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode5.ts(2,1): error TS1100: Invalid use of 'eval' in strict mode.
tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode5.ts(2,1): error TS2365: Operator '+=' cannot be applied to types '(x: string) => any' and 'number'.
2014-07-23 19:40:39 +02:00
==== tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode5.ts (2 errors) ====
2014-07-13 01:04:16 +02:00
"use strict";
eval += 1;
2014-07-23 19:40:39 +02:00
~~~~
!!! error TS1100: Invalid use of 'eval' in strict mode.
2014-07-13 01:04:16 +02:00
~~~~~~~~~
!!! error TS2365: Operator '+=' cannot be applied to types '(x: string) => any' and 'number'.