* Pass module specifier resolution host thru types constructed by implements quickfixes * Add regression test * Fix scope node for generated methods, fix lints
26 lines
506 B
TypeScript
26 lines
506 B
TypeScript
/// <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:
|
|
`import { I } from "./I";
|
|
export class C implements I {
|
|
x: import("./I").J;
|
|
m(): import("./I").J {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
}`,
|
|
});
|