mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
20 lines
383 B
TypeScript
20 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 {}
|