* Start fixing fixId * Fix tests * Add comment * Fix unit tests, remove fixAllDescription when unavailable * Add codeFixAllAvailable to fourslash harness
17 lines
397 B
TypeScript
17 lines
397 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
//// class C {}
|
|
//// const n: number = new C().add(1, 2);
|
|
|
|
verify.codeFix({
|
|
index: 0,
|
|
description: ignoreInterpolations(ts.Diagnostics.Declare_method_0),
|
|
newFileContent:
|
|
`class C {
|
|
add(arg0: number, arg1: number): number {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
}
|
|
const n: number = new C().add(1, 2);`,
|
|
});
|