-
Notifications
You must be signed in to change notification settings - Fork 12.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: Matched argument name and name of exported function breaks module export #11204
Comments
Is this a regression from 1.8? |
@RyanCavanaugh yes, it works fine on 1.8.10 |
Note that it work well if use export function my() {} instead of export {
my
} |
This is the intended behavior. this was a change in the emitted code in TS 2.0 to match the ES6 module semantics. |
@mhegazy with all due respect, you are sure that #8739 is related to this situation described? I think you just do not carefully studied example. And even if it is "Working as Intended" (I really doubt) - it breaks backward compatibility. At the same time, this code works fine in _1.8.10_ |
I actually did not see the function argument. my apologies. i was talking about the function name. |
@vladima can you take a look. we need to fix this for release-2.0.5 |
TypeScript Version: 2.0.3
Code
Expected behavior:
Actual behavior:
_Problem here:_
The text was updated successfully, but these errors were encountered: