Files

19 lines
926 B
Diff

--- old.parserWithStatement1.d.errors.txt
+++ new.parserWithStatement1.d.errors.txt
@@= skipped -0, +0 lines =@@
parserWithStatement1.d.ts(1,1): error TS1036: Statements are not allowed in ambient contexts.
+parserWithStatement1.d.ts(1,1): error TS1101: 'with' statements are not allowed in strict mode.
parserWithStatement1.d.ts(1,1): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
parserWithStatement1.d.ts(1,7): error TS2304: Cannot find name 'foo'.
-==== parserWithStatement1.d.ts (3 errors) ====
+==== parserWithStatement1.d.ts (4 errors) ====
with (foo) {
~~~~
!!! error TS1036: Statements are not allowed in ambient contexts.
+ ~~~~
+!!! error TS1101: 'with' statements are not allowed in strict mode.
~~~~~~~~~~
!!! error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
~~~