Skip to content

Fix crash on erroneous enum member merged with exported type alias - #36429

Merged
Wesley Wigham (weswigham) merged 1 commit into
microsoft:masterfrom
weswigham:fix-enum-member-merge-crash
Jan 24, 2020
Merged

Wesley Wigham (weswigham) merged 1 commit into
microsoft:masterfrom
weswigham:fix-enum-member-merge-crash

Conversation

@weswigham

Copy link
Copy Markdown
Member

This fixes a crash reported in our RWC suite on master.

~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2440: Import declaration conflicts with local declaration of 'EnumA'.
~~~~~
!!! error TS2395: Individual declarations in merged declaration 'EnumA' must be all exported or all local.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find it annoying how this message always comes up even when the two declarations don’t merge (without errors)... just feels like misleading noise. Not related to this PR, though, it happens in a lot of nonsense places (#36237)

@weswigham
Wesley Wigham (weswigham) merged commit 9ef9bb0 into microsoft:master Jan 24, 2020
@weswigham
Wesley Wigham (weswigham) deleted the fix-enum-member-merge-crash branch January 24, 2020 23:00
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants