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

26 lines
542 B
TypeScript

/// <reference path='fourslash.ts' />
////class C {
//// z: boolean = true;
//// method() {
//// const x = 0;
//// this.y(x, "a", this.z);
//// }
////}
verify.codeFixAll({
fixId: "addMissingMember",
fixAllDescription: "Add all missing members",
newFileContent:
`class C {
z: boolean = true;
method() {
const x = 0;
this.y(x, "a", this.z);
}
y(x: number, arg1: string, z: boolean) {
throw new Error("Method not implemented.");
}
}`,
});