{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4341","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4341/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4341/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4341/events","html_url":"https://github.com/Microsoft/TypeScript/issues/4341","id":101482082,"number":4341,"title":"TypeError: b is undefined in __extends","user":{"login":"drake7707","id":5351764,"avatar_url":"https://avatars.githubusercontent.com/u/5351764?v=3","gravatar_id":"","url":"https://api.github.com/users/drake7707","html_url":"https://github.com/drake7707","followers_url":"https://api.github.com/users/drake7707/followers","following_url":"https://api.github.com/users/drake7707/following{/other_user}","gists_url":"https://api.github.com/users/drake7707/gists{/gist_id}","starred_url":"https://api.github.com/users/drake7707/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drake7707/subscriptions","organizations_url":"https://api.github.com/users/drake7707/orgs","repos_url":"https://api.github.com/users/drake7707/repos","events_url":"https://api.github.com/users/drake7707/events{/privacy}","received_events_url":"https://api.github.com/users/drake7707/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"sheetalkamat","id":8052792,"avatar_url":"https://avatars.githubusercontent.com/u/8052792?v=3","gravatar_id":"","url":"https://api.github.com/users/sheetalkamat","html_url":"https://github.com/sheetalkamat","followers_url":"https://api.github.com/users/sheetalkamat/followers","following_url":"https://api.github.com/users/sheetalkamat/following{/other_user}","gists_url":"https://api.github.com/users/sheetalkamat/gists{/gist_id}","starred_url":"https://api.github.com/users/sheetalkamat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheetalkamat/subscriptions","organizations_url":"https://api.github.com/users/sheetalkamat/orgs","repos_url":"https://api.github.com/users/sheetalkamat/repos","events_url":"https://api.github.com/users/sheetalkamat/events{/privacy}","received_events_url":"https://api.github.com/users/sheetalkamat/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/1","html_url":"https://github.com/Microsoft/TypeScript/milestones/TypeScript%202.0","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/1/labels","id":721040,"number":1,"title":"TypeScript 2.0","description":"The next major release of TypeScript","creator":{"login":"RyanCavanaugh","id":6685088,"avatar_url":"https://avatars.githubusercontent.com/u/6685088?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"open_issues":83,"closed_issues":14,"state":"open","created_at":"2014-07-14T23:24:03Z","updated_at":"2015-12-11T07:40:14Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-08-17T18:30:53Z","updated_at":"2015-12-14T22:05:21Z","closed_at":null,"body":"```\r\n\r\nclass B extends A {\r\n    constructor(msg:string) { \r\n        super(msg);\r\n    }\r\n}\r\n\r\nclass A {\r\n    constructor(public msg:string) {\r\n        \r\n    }\r\n}\r\n\r\n```\r\n\r\nIf the super class of B is defined after A you'll get a runtime error.\r\n\r\nJust tested the above code in the typescript playground and I get the same error"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/164574501","html_url":"https://github.com/Microsoft/TypeScript/issues/4341#issuecomment-164574501","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4341","id":164574501,"user":{"login":"RyanCavanaugh","id":6685088,"avatar_url":"https://avatars.githubusercontent.com/u/6685088?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T22:05:21Z","updated_at":"2015-12-14T22:05:21Z","body":"@rodrigogq the generated code you posted runs without error. The input code you posted has a compile error because `Base` is not exported from its module and is thus invisible in the second declaration."}}