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
Importing a type with same name as an export #31031
Expected behavior: Declaration conflict on test.ts (imported Foo vs exported Foo).
Actual behavior: No error. Instead, (see last line) Foo refers to the imported Foo, and the exported Foo becomes unaccessible. Is this expected?
If export interface is changed to export class, then a declaration conflict appears.
If export is removed in initial case, a declaration conflict also appears.
Playground Link: I don't know how to reproduce this with one file.
Related Issues: I searched issues, stackoverflow and docs (declaration merging, imports and exports, namespaces) but couldn't find any references to this behaviour.
Raised a PR to attempt resolving this (#31231). One thing to note is that this was introduced by #7591 because of possible breakage from #7583. Not sure if this still holds though.
Activity
collin5 commentedon Apr 30, 2019
Hmm, I see. Will be taking a crack at this by end of the week.
collin5 commentedon May 3, 2019
Raised a PR to attempt resolving this (#31231). One thing to note is that this was introduced by #7591 because of possible breakage from #7583. Not sure if this still holds though.