3d2bf6a75f
* Pass module specifier resolution host thru types constructed by implements quickfixes * Add regression test * Fix scope node for generated methods, fix lints
27 lines
604 B
TypeScript
27 lines
604 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @Filename: class.ts
|
|
////export class Class { }
|
|
// @Filename: interface.ts
|
|
////import { Class } from './class';
|
|
////
|
|
////export interface Foo {
|
|
//// x: Class;
|
|
////}
|
|
// @Filename: index.ts
|
|
////import { Foo } from './interface';
|
|
////
|
|
////class /*1*/X implements Foo {}
|
|
goTo.marker("1");
|
|
verify.codeFix({
|
|
index: 0,
|
|
description: "Implement interface 'Foo'",
|
|
newFileContent: {
|
|
"/tests/cases/fourslash/index.ts": `import { Foo } from './interface';
|
|
|
|
class X implements Foo {
|
|
x: import("./class").Class;
|
|
}`
|
|
}
|
|
});
|