--esModuleInterop: Strange incompatibility between correct and incorrect import of same type #21653
Labels
Domain: Error Messages
The issue relates to error messaging
Experience Enhancement
Noncontroversial enhancements
In Discussion
Not yet reached consensus
Suggestion
An idea for TypeScript
Milestone
TypeScript Version: master
Code
b.d.ts
a.ts
Expected behavior:
Error at
import * as C1
.Actual behavior:
No error at the import declaration. Error at
new C2()
:(possibly related: #20704)
The text was updated successfully, but these errors were encountered: