mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
27 lines
410 B
TypeScript
27 lines
410 B
TypeScript
|
// @declaration: true
|
||
|
// @noImplicitOverride: true
|
||
|
declare class B {
|
||
|
foo(): void
|
||
|
bar(): void
|
||
|
}
|
||
|
|
||
|
declare class D extends B {
|
||
|
foo (): void;
|
||
|
override bar (): void;
|
||
|
}
|
||
|
|
||
|
class DB extends B {
|
||
|
override foo(): void {}
|
||
|
override bar(): void {}
|
||
|
}
|
||
|
|
||
|
class DD extends D {
|
||
|
override foo(): void {}
|
||
|
override bar(): void {}
|
||
|
}
|
||
|
|
||
|
class EB extends D {
|
||
|
foo(): void {}
|
||
|
override bar(): void {}
|
||
|
}
|