TypeScript/tests/cases/fourslash/codeFixAddMissingMember_non_generator_function.ts
2019-02-22 17:24:21 -08:00

22 lines
401 B
TypeScript

/// <reference path='fourslash.ts' />
////class C {
//// method() {
//// yield* this.y();
//// }
////}
verify.codeFixAll({
fixId: "addMissingMember",
fixAllDescription: "Add all missing members",
newFileContent:
`class C {
method() {
yield* this.y();
}
y() {
throw new Error("Method not implemented.");
}
}`,
});