mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +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 {}
|