Closed
Description
with(x) { var y = 1; }
Expected: (1,6): error TS2135: All symbols within a with block will be resolved to 'any'.
Actual: (1,6): Could not find symbol 'x'.
If x is defined prior to the with block then the new compiler issues no errors at all.
See also:
tests/cases/compiler/withStatement.ts
tests/cases/compiler/withStatementErrors.ts
tests/cases/compiler/withStatementNestedScope.ts