TypeScript/tests/baselines/reference/superCallsInConstructor.errors.txt
2014-07-21 17:10:04 -07:00

23 lines
519 B
Plaintext

==== tests/cases/compiler/superCallsInConstructor.ts (1 errors) ====
class C {
foo() {}
bar() {}
}
class Base {
x: string;
}
class Derived extends Base {
constructor() {
with(new C()) {
~~~~~~~
!!! All symbols within a 'with' block will be resolved to 'any'.
foo();
super();
bar();
}
try {} catch(e) { super(); }
}
}