swc/crates/swc_ecma_parser/tests/tsc/overrideWithoutNoImplicitOverride1.ts
2022-02-04 17:08:38 +09:00

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