TypeScript/tests/cases/fourslash/codeFixClassImplementInterfaceMethodTypePredicate.ts
2017-03-27 11:53:44 -07:00

17 lines
304 B
TypeScript

/// <reference path='fourslash.ts' />
//// interface I {
//// f(i: any): i is I;
//// f(): this is I;
//// }
////
//// class C implements I {[| |]}
verify.rangeAfterCodeFix(`
f(i: any): i is I;
f(): this is I;
f(i?: any) {
throw new Error("Method not implemented.");
}
`);