falling test cases
// @filename: a.ts
class A {
protected foo() {}
}
// @filename: b.ts
interface A { }
class B extends A {
protected foo() {}
}
// @module: amd
// @filename: a.ts
export class A {
protected protected: any;
protected setProtected(val: any) {
this.protected = val;
}
}
// @filename: b.ts
import {A} from './a';
declare module "./a" {
interface A { }
}
export class B extends A {
protected setProtected() {
}
}
Both tests should pass without errors however now the same error is reported in both cases:
Class 'B' incorrectly extends base class 'A'.
falling test cases
Both tests should pass without errors however now the same error is reported in both cases:
Class 'B' incorrectly extends base class 'A'.