TypeScript/tests/cases/fourslash/codeFixClassImplementClassMultipleSignatures2.ts

19 lines
618 B
TypeScript
Raw Normal View History

2016-12-07 04:46:08 +01:00
/// <reference path='fourslash.ts' />
//// class A {
//// method(a: any, b: string): boolean;
//// method(a: string, b: number): Function;
//// method(a: string): Function;
//// method(a: string | number, b?: string | number): boolean | Function { return true; }
////
//// class C implements A {[| |]}
verify.rangeAfterCodeFix(`
method(a: any, b: string): boolean;
method(a: string, b: number): Function;
method(a: string): Function;
method(a: string | number, b?: string | number): boolean | Function {
2017-03-13 02:52:38 +01:00
throw new Error("Method not implemented.");
2016-12-07 04:46:08 +01:00
}
`);