{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11204","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11204/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11204/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11204/events","html_url":"https://github.com/Microsoft/TypeScript/issues/11204","id":179708155,"number":11204,"title":"Matched argument name and name of exported function breaks module export","user":{"login":"tsofist","id":6843713,"avatar_url":"https://avatars.githubusercontent.com/u/6843713?v=3","gravatar_id":"","url":"https://api.github.com/users/tsofist","html_url":"https://github.com/tsofist","followers_url":"https://api.github.com/users/tsofist/followers","following_url":"https://api.github.com/users/tsofist/following{/other_user}","gists_url":"https://api.github.com/users/tsofist/gists{/gist_id}","starred_url":"https://api.github.com/users/tsofist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsofist/subscriptions","organizations_url":"https://api.github.com/users/tsofist/orgs","repos_url":"https://api.github.com/users/tsofist/repos","events_url":"https://api.github.com/users/tsofist/events{/privacy}","received_events_url":"https://api.github.com/users/tsofist/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-28T08:18:12Z","updated_at":"2016-09-29T04:01:12Z","closed_at":"2016-09-29T04:01:12Z","body":"**TypeScript Version:**  2.0.3\r\n\r\n**Code**\r\n\r\n```ts\r\nexport {\r\n    my\r\n}\r\n\r\nfunction my() { }\r\n\r\nfunction doSome1(my: any) {\r\n    my = +my;\r\n    return my;\r\n}\r\n\r\nfunction doSome2() {\r\n    const internal = (my: any) => {\r\n        my = +my;\r\n        return my;\r\n    };\r\n    return internal(\"1\");\r\n}\r\n\r\ndoSome1(\"1\");\r\ndoSome2();\r\n```\r\n\r\n**Expected behavior:**\r\n\r\n```js\r\n    function my() { }\r\n    exports.my = my;\r\n    function doSome1(my) {\r\n        my = +my;\r\n        return my;\r\n    }\r\n    function doSome2() {\r\n        var internal = function (my) {\r\n            my = +my;\r\n            return my;\r\n        };\r\n        return internal(\"1\");\r\n    }\r\n    doSome1(\"1\");\r\n    doSome2();\r\n```\r\n\r\n**Actual behavior:** \r\n```js\r\n    function my() { }\r\n    exports.my = my;\r\n    function doSome1(my) {\r\n        exports.my = my = +my;\r\n        return my;\r\n    }\r\n    function doSome2() {\r\n        var internal = function (my) {\r\n            exports.my = my = +my;\r\n            return my;\r\n        };\r\n        return internal(\"1\");\r\n    }\r\n    doSome1(\"1\");\r\n    doSome2();\r\n```"}}
{"actor":{"display_login":"mhegazy"}}