mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
48 lines
712 B
TypeScript
48 lines
712 B
TypeScript
// @noImplicitOverride: false
|
|
|
|
export declare class AmbientClass {
|
|
override yadda(): void;
|
|
}
|
|
|
|
export class NonAmbientClass {
|
|
override yadda(): void {}
|
|
}
|
|
|
|
/////
|
|
|
|
export declare class AmbientBase {
|
|
foo(): void;
|
|
}
|
|
|
|
export declare class AmbientDerived extends AmbientBase {
|
|
foo(): void;
|
|
|
|
override bar(): void;
|
|
}
|
|
|
|
/////
|
|
|
|
declare namespace ambientNamespace {
|
|
export class AmbientBase {
|
|
foo(): void;
|
|
}
|
|
|
|
export class AmbientDerived extends AmbientBase {
|
|
foo(): void;
|
|
|
|
override bar(): void;
|
|
}
|
|
}
|
|
|
|
/////
|
|
|
|
export class NonAmbientBase {
|
|
foo(): void {}
|
|
}
|
|
|
|
export class NonAmbientDerived extends NonAmbientBase {
|
|
foo(): void {}
|
|
|
|
override bar(): void {}
|
|
}
|