2017-12-07 21:14:18 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////interface I { i(): void; }
|
|
|
|
////interface J { j(): void; }
|
|
|
|
////class C implements I, J {}
|
|
|
|
////class D implements J {}
|
|
|
|
|
|
|
|
verify.codeFixAll({
|
|
|
|
fixId: "fixClassIncorrectlyImplementsInterface",
|
2018-03-28 03:21:21 +02:00
|
|
|
fixAllDescription: "Implement all unimplemented interfaces",
|
2017-12-07 21:14:18 +01:00
|
|
|
newFileContent:
|
|
|
|
`interface I { i(): void; }
|
|
|
|
interface J { j(): void; }
|
2018-01-12 02:43:27 +01:00
|
|
|
class C implements I, J {
|
|
|
|
i(): void {
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
|
|
|
j(): void {
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
2017-12-07 21:14:18 +01:00
|
|
|
}
|
2018-01-12 02:43:27 +01:00
|
|
|
class D implements J {
|
|
|
|
j(): void {
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
2017-12-07 21:14:18 +01:00
|
|
|
}`,
|
|
|
|
});
|