-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Milestone
Description
TypeScript Version: 3.0.0-dev.20180601
Search Terms:
- Move to new file
- refactoring
Code
For a project
a.ts
export const x = 123b.ts
import * as a from './a'
console.log(a.x)- Run the
move to new filerefactoring onexport const x
Expected behavior:
Unclear what exact behavior should be for b.ts. Perhaps:
import * as a from './a'
import { x } from './x'
console.log(x);or
import * as a from './a'
import * as x from './x'
console.log(x.x);Actual behavior:
No update to b.ts. File is now invalid:
b.ts
import * as a from './a'
console.log(a.x)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue