{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5447","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5447/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5447/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5447/events","html_url":"https://github.com/Microsoft/TypeScript/issues/5447","id":113971890,"number":5447,"title":"ES6 modules default exported function/class/generator name is not declared","user":{"login":"falsandtru","id":3143368,"avatar_url":"https://avatars.githubusercontent.com/u/3143368?v=3","gravatar_id":"","url":"https://api.github.com/users/falsandtru","html_url":"https://github.com/falsandtru","followers_url":"https://api.github.com/users/falsandtru/followers","following_url":"https://api.github.com/users/falsandtru/following{/other_user}","gists_url":"https://api.github.com/users/falsandtru/gists{/gist_id}","starred_url":"https://api.github.com/users/falsandtru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falsandtru/subscriptions","organizations_url":"https://api.github.com/users/falsandtru/orgs","repos_url":"https://api.github.com/users/falsandtru/repos","events_url":"https://api.github.com/users/falsandtru/events{/privacy}","received_events_url":"https://api.github.com/users/falsandtru/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/ES6","name":"ES6","color":"c7def8"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Fixed","name":"Fixed","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"sandersn","id":293473,"avatar_url":"https://avatars.githubusercontent.com/u/293473?v=3","gravatar_id":"","url":"https://api.github.com/users/sandersn","html_url":"https://github.com/sandersn","followers_url":"https://api.github.com/users/sandersn/followers","following_url":"https://api.github.com/users/sandersn/following{/other_user}","gists_url":"https://api.github.com/users/sandersn/gists{/gist_id}","starred_url":"https://api.github.com/users/sandersn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandersn/subscriptions","organizations_url":"https://api.github.com/users/sandersn/orgs","repos_url":"https://api.github.com/users/sandersn/repos","events_url":"https://api.github.com/users/sandersn/events{/privacy}","received_events_url":"https://api.github.com/users/sandersn/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/15","html_url":"https://github.com/Microsoft/TypeScript/milestones/TypeScript%201.8","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/15/labels","id":1347987,"number":15,"title":"TypeScript 1.8","description":"","creator":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"open_issues":190,"closed_issues":53,"state":"open","created_at":"2015-10-09T22:07:47Z","updated_at":"2015-11-12T01:39:09Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-10-29T03:33:07Z","updated_at":"2015-11-12T19:50:38Z","closed_at":"2015-11-11T19:29:31Z","body":"```ts\r\n// function\r\nexport default function foo() {\r\n}\r\nexport {foo}; // hello.ts(3,9): error TS2304: Cannot find name 'foo'.\r\n\r\n// generator\r\nexport default function *foo() {\r\n}\r\nexport {foo}; // hello.ts(3,9): error TS2304: Cannot find name 'foo'.\r\n\r\n// class\r\nexport default class Foo {\r\n}\r\nexport {Foo}; // hello.ts(3,9): error TS2304: Cannot find name 'Foo'.\r\n```\r\n\r\n```ts\r\n// hoistable\r\nexport {foo}; // hello.ts(1,9): error TS2304: Cannot find name 'foo'.\r\nexport default function foo() {\r\n}\r\n```\r\n\r\nhttp://www.ecma-international.org/ecma-262/6.0/#sec-source-text-module-records\r\nhttp://www.ecma-international.org/ecma-262/6.0/#table-42"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/156215668","html_url":"https://github.com/Microsoft/TypeScript/issues/5447#issuecomment-156215668","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5447","id":156215668,"user":{"login":"WangJi","id":5742670,"avatar_url":"https://avatars.githubusercontent.com/u/5742670?v=3","gravatar_id":"","url":"https://api.github.com/users/WangJi","html_url":"https://github.com/WangJi","followers_url":"https://api.github.com/users/WangJi/followers","following_url":"https://api.github.com/users/WangJi/following{/other_user}","gists_url":"https://api.github.com/users/WangJi/gists{/gist_id}","starred_url":"https://api.github.com/users/WangJi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WangJi/subscriptions","organizations_url":"https://api.github.com/users/WangJi/orgs","repos_url":"https://api.github.com/users/WangJi/repos","events_url":"https://api.github.com/users/WangJi/events{/privacy}","received_events_url":"https://api.github.com/users/WangJi/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T19:50:38Z","updated_at":"2015-11-12T19:50:38Z","body":"Tried on Version `1.8.0-dev.20151112`, still got the same warning.\r\nAnd\r\n```\r\nexport default class Foo{\r\n}\r\n``\r\nis complied into \r\n```\r\nexports.Foo = Foo; //instead of default\r\n``"}}