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

15 lines
792 B
Plaintext
Raw Normal View History

tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode14.ts(2,1): error TS1101: 'with' statements are not allowed in strict mode.
tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode14.ts(2,7): error TS2304: Cannot find name 'a'.
tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode14.ts(2,7): error TS2410: All symbols within a 'with' block will be resolved to 'any'.
2014-07-24 22:09:03 +02:00
==== tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode14.ts (3 errors) ====
2014-07-13 01:04:16 +02:00
"use strict";
with (a) {
~~~~
!!! error TS1101: 'with' statements are not allowed in strict mode.
2014-07-13 01:04:16 +02:00
~
!!! error TS2304: Cannot find name 'a'.
2014-08-19 00:35:37 +02:00
~
!!! error TS2410: All symbols within a 'with' block will be resolved to 'any'.
2014-07-24 22:09:03 +02:00
}