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
The text was updated successfully, but these errors were encountered:
legendecas
changed the title
TypeError when overriding export entries in start export
TypeError when overriding export entries in export star
May 28, 2020
legendecas
changed the title
TypeError when overriding export entries in export star
TypeError when overriding export entries in star export
May 28, 2020
I've tested this against the latest in master and it works as expected. I believe this was fixed by #39213. I'm not sure why it would repo in 4.0.0-dev.20200626, as the fix should have been included in that release.
TypeScript Version: 3.9.3
Search Terms: export star, export binding, duplicated exports
Code
Expected behavior:
In
d.ts
, it should printb
.Tested with pure .mjs with Node.js, it works as expected.
Actual behavior:
Throws
TypeError: Cannot redefine property: name
Generates:
Also tested on TypeScript 3.8.3, 3.8.3 generates:
According to https://tc39.es/ecma262/#sec-resolveexport, the star exports should be resolved after explicit export names.
The text was updated successfully, but these errors were encountered: