Skip to content

Commit 4d1abee

Browse files
Andaristandrewbranch
authored andcommitted
Allow imports with the same names as global types to be moved by refactoring
1 parent d0d3dc0 commit 4d1abee

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
// @lib: dom
4+
5+
// @Filename: /a.ts
6+
//// export default class Event {}
7+
8+
// @Filename: /b.ts
9+
//// import Event from './a.js';
10+
//// [|export function test(test: Event): void {}|]
11+
12+
verify.noErrors();
13+
14+
verify.moveToNewFile({
15+
newFileContents: {
16+
"/b.ts": "",
17+
18+
"/test.ts":
19+
`import Event from './a';
20+
21+
export function test(test: Event): void { }
22+
`,
23+
},
24+
});

0 commit comments

Comments
 (0)