Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming import alias with the same name renames the origin #10894

Closed
normalser opened this issue Sep 13, 2016 · 0 comments · Fixed by #14001
Closed

Renaming import alias with the same name renames the origin #10894

normalser opened this issue Sep 13, 2016 · 0 comments · Fixed by #14001
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@normalser
Copy link

normalser commented Sep 13, 2016

Code

// File: test1.ts
export class Test {
}

// File: test2.ts
import { Test as Test } from './test1'

const test = new Test()

If you rename left or right side of Test as Test - both sides are renamed at the same time - it should only rename source or alias separately

@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Sep 13, 2016
@mhegazy mhegazy assigned ghost Sep 21, 2016
@mhegazy mhegazy added this to the TypeScript 2.1 milestone Sep 21, 2016
@mhegazy mhegazy modified the milestones: TypeScript 2.1, Future Sep 29, 2016
@ghost ghost closed this as completed in #14001 Apr 14, 2017
@mhegazy mhegazy modified the milestones: TypeScript 2.3.1, Future Apr 14, 2017
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Apr 14, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants