2019-01-14 22:56:27 +01:00
|
|
|
/// <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: {
|
2020-02-11 02:13:35 +01:00
|
|
|
"/tests/cases/fourslash/index.ts":
|
2020-07-09 00:25:04 +02:00
|
|
|
`import { Class } from './class';
|
|
|
|
import { Foo } from './interface';
|
2019-01-14 22:56:27 +01:00
|
|
|
|
|
|
|
class X implements Foo {
|
2020-02-11 02:13:35 +01:00
|
|
|
x: Class;
|
2019-01-14 22:56:27 +01:00
|
|
|
}`
|
|
|
|
}
|
|
|
|
});
|