You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Abstract classes will still import the value for a computed property at runtime #33525
Expected behavior:
sharedSymbol.js is not imported by AbstractClass.js Actual behavior:
The symbol is imported by AbstractClass.js despite it's use being omitted due to it's abstract nature
Playground Link: Unavailable due to the bug being related to imported values.
In Typescript 5.9.3 this issue still exists but can be worked around by using import type {} syntax instead of import {} syntax.
I've attached a copy of my reproduction of this bug since playground still doesn't appear to have multi-file support (or if it does I can't find it). typescript-bug-33525-2025-10-24.zip
Edit: see my followup comment.
In the test case I uploaded to my above comment, I accidentally had verbatimModuleSyntax set to true.
The bug still exists even when I disable that.
Here's the new reproduction: typescript-bug-33525-2025-10-25.zip
Activity
Jack-Works commentedon Mar 24, 2020
Have a try with new
import typesyntax 🤔puppy0cam commentedon Aug 21, 2020
This works properly.
puppy0cam commentedon Oct 24, 2025
In Typescript 5.9.3 this issue still exists but can be worked around by using
import type {}syntax instead ofimport {}syntax.I've attached a copy of my reproduction of this bug since playground still doesn't appear to have multi-file support (or if it does I can't find it).
typescript-bug-33525-2025-10-24.zipEdit: see my followup comment.
puppy0cam commentedon Oct 25, 2025
In the test case I uploaded to my above comment, I accidentally had
verbatimModuleSyntaxset to true.The bug still exists even when I disable that.
Here's the new reproduction:
typescript-bug-33525-2025-10-25.zip
fix: abstract properties are now properly elided from imports
fix: abstract properties are now properly elided from imports