2018-10-22 20:44:06 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
|
|
|
////class C {
|
|
|
|
//// get g() { return 0; }
|
|
|
|
//// get h() { return 1; }
|
|
|
|
////}
|
|
|
|
////[|export const { g, h: i } = new C();|]
|
|
|
|
|
|
|
|
// @Filename: /b.ts
|
|
|
|
////import { g, i } from "./a";
|
|
|
|
|
|
|
|
verify.noErrors();
|
|
|
|
|
|
|
|
verify.moveToNewFile({
|
|
|
|
newFileContents: {
|
|
|
|
"/a.ts":
|
|
|
|
`export class C {
|
|
|
|
get g() { return 0; }
|
|
|
|
get h() { return 1; }
|
|
|
|
}
|
|
|
|
`,
|
|
|
|
|
|
|
|
"/g.ts":
|
|
|
|
`import { C } from "./a";
|
2020-07-22 19:31:42 +02:00
|
|
|
|
2018-10-24 01:10:26 +02:00
|
|
|
export const { g, h: i } = new C();
|
|
|
|
`,
|
2018-10-22 20:44:06 +02:00
|
|
|
|
|
|
|
"/b.ts":
|
|
|
|
`
|
|
|
|
import { g, i } from "./g";
|
|
|
|
`,
|
|
|
|
},
|
|
|
|
});
|