swc/crates/swc_ecma_parser/tests/tsc/overrideWithoutNoImplicitOverride1.ts

48 lines
712 B
TypeScript
Raw Normal View History

// @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 {}
}