2018-06-20 01:36:18 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @Filename: /I.ts
|
|
|
|
////export interface J {}
|
|
|
|
////export interface I {
|
|
|
|
//// x: J;
|
|
|
|
//// m(): J;
|
|
|
|
////}
|
|
|
|
|
|
|
|
// @Filename: /C.ts
|
|
|
|
////import { I } from "./I";
|
|
|
|
////export class C implements I {}
|
|
|
|
|
|
|
|
goTo.file("/C.ts");
|
|
|
|
verify.codeFix({
|
|
|
|
description: "Implement interface 'I'",
|
|
|
|
newFileContent:
|
2020-02-11 02:13:35 +01:00
|
|
|
`import { I, J } from "./I";
|
2018-06-20 01:36:18 +02:00
|
|
|
export class C implements I {
|
2020-02-11 02:13:35 +01:00
|
|
|
x: J;
|
|
|
|
m(): J {
|
2018-06-20 01:36:18 +02:00
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
|
|
|
}`,
|
|
|
|
});
|