* A merged interface with an inherited member should satisfy an abstract base class member * Tighten up comments and names
19 lines
383 B
TypeScript
19 lines
383 B
TypeScript
abstract class BaseClass {
|
|
abstract bar: number;
|
|
}
|
|
|
|
class Broken extends BaseClass {}
|
|
|
|
// declaration merging should satisfy abstract bar
|
|
interface IGetters {
|
|
bar: number;
|
|
}
|
|
interface Broken extends IGetters {}
|
|
|
|
new Broken().bar
|
|
|
|
class IncorrectlyExtends extends BaseClass {}
|
|
interface IncorrectGetters {
|
|
bar: string;
|
|
}
|
|
interface IncorrectlyExtends extends IncorrectGetters {}
|