Dependency tracking system uses declared names for imported types/guards/classes #218
Labels
bug
Something isn't working
enhancement
New feature or request
help wanted
Extra attention is needed
So I was working on #166, which took me down a rabbithole with #162, of which one of the test cases revealed a deeper problem that isn't only restricted to class imports, but any situation where imports are renamed to avoid identifier conflicts.
For example:
results in a guard that contains duplicate identifiers or references non-existent identifiers.
This isn't restricted to duplicate import names. The same problem occurs any time imported bindings are renamed:
Including any of these lines will break dependency tracking, and therefor guard generation.
I think the solution to this is to have the code generation and dependency tracking use the imported identifier rather than the declared and exported name. I'm currently working on a solution, but opening an issue first to explain the changes.
The text was updated successfully, but these errors were encountered: