TypeScript/tests/cases/fourslash/codeFixClassImplementInterfaceComputedPropertyLiterals.ts
2017-03-13 09:18:40 -07:00

21 lines
467 B
TypeScript

/// <reference path='fourslash.ts' />
//// interface I {
//// ["foo"](o: any): boolean;
//// ["x"]: boolean;
//// [1](): string;
//// [2]: boolean;
//// }
////
//// class C implements I {[| |]}
verify.rangeAfterCodeFix(`
["foo"](o: any): boolean {
throw new Error("Method not implemented.");
}
["x"]: boolean;
[1](): string {
throw new Error("Method not implemented.");
}
[2]: boolean;
`);