TypeScript/tests/cases/fourslash/codeFixClassImplementClassMultipleSignatures1.ts
2017-03-12 18:52:38 -07:00

15 lines
456 B
TypeScript

/// <reference path='fourslash.ts' />
//// class A {
//// method(a: number, b: string): boolean;
//// method(a: string | number, b?: string | number): boolean | Function { return true; }
////
//// class C implements A {[| |]}
verify.rangeAfterCodeFix(`
method(a: number, b: string): boolean;
method(a: string | number, b?: string | number): boolean | Function {
throw new Error("Method not implemented.");
}
`);