TypeScript/tests/cases/fourslash/codeFixClassExtendAbstractMethod.ts

25 lines
687 B
TypeScript
Raw Normal View History

2016-10-28 20:57:30 +02:00
/// <reference path='fourslash.ts' />
//// abstract class A {
2016-12-07 04:46:08 +01:00
//// abstract f(a: number, b: string): boolean;
//// abstract f(a: number, b: string): this;
2016-12-07 04:46:08 +01:00
//// abstract f(a: string, b: number): Function;
//// abstract f(a: string): Function;
2017-03-14 02:09:53 +01:00
//// abstract foo(): number;
2016-10-28 20:57:30 +02:00
//// }
////
2016-12-07 04:46:08 +01:00
//// class C extends A {[| |]}
2016-10-28 20:57:30 +02:00
2016-12-07 04:46:08 +01:00
verify.rangeAfterCodeFix(`
f(a: number, b: string): boolean;
f(a: number, b: string): this;
2016-12-07 04:46:08 +01:00
f(a: string, b: number): Function;
f(a: string): Function;
f(a: any, b?: any) {
2017-03-13 02:52:38 +01:00
throw new Error("Method not implemented.");
2016-12-07 04:46:08 +01:00
}
2017-03-14 02:09:53 +01:00
foo(): number {
throw new Error("Method not implemented.");
}
2016-12-07 04:46:08 +01:00
`);