Skip to content

Imports get lost, when classes are only referenced in switch/case branches #719

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

Closed
mechanoid opened this issue Nov 13, 2015 · 3 comments
Closed

Comments

@mechanoid
Copy link

hi,

as stated in the headline, it seems that there is a problem when resolving the require statements for an output file. If a required class is only referenced inside switch/case statement the according require statement is not available in the list of required files anymore.

To get a better understanding of the problem, you may take a look at an example i have created:

https://github.com/mechanoid/ts-import-error-test

Because the same is going well with tsc it seems to be a problem of the atom-typescript plugin.

Maybe you have a hint for me, or maybe you can validate that it is an actual bug.

Thanks in advance, Falk

@basarat
Copy link
Member

basarat commented Nov 14, 2015

Seems like an issue with TypeScript nightly. Issue moved here : microsoft/TypeScript#5666 🌹

@DanielRosenwasser
Copy link

@mechanoid check out the latest nightly build.

basarat added a commit that referenced this issue Nov 14, 2015
@basarat
Copy link
Member

basarat commented Nov 14, 2015

@TypeStrong TypeStrong locked and limited conversation to collaborators Jan 20, 2019
angelestelar5z added a commit to angelestelar5z/atom-typescript that referenced this issue Aug 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants