{"action":"closed","issue":{"url":"https://api.github.com/repos/6to5/6to5/issues/759","labels_url":"https://api.github.com/repos/6to5/6to5/issues/759/labels{/name}","comments_url":"https://api.github.com/repos/6to5/6to5/issues/759/comments","events_url":"https://api.github.com/repos/6to5/6to5/issues/759/events","html_url":"https://github.com/6to5/6to5/issues/759","id":57411260,"number":759,"title":"class that extends itself doesn't compile correctly","user":{"login":"simonzack","id":628500,"avatar_url":"https://avatars.githubusercontent.com/u/628500?v=3","gravatar_id":"","url":"https://api.github.com/users/simonzack","html_url":"https://github.com/simonzack","followers_url":"https://api.github.com/users/simonzack/followers","following_url":"https://api.github.com/users/simonzack/following{/other_user}","gists_url":"https://api.github.com/users/simonzack/gists{/gist_id}","starred_url":"https://api.github.com/users/simonzack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonzack/subscriptions","organizations_url":"https://api.github.com/users/simonzack/orgs","repos_url":"https://api.github.com/users/simonzack/repos","events_url":"https://api.github.com/users/simonzack/events{/privacy}","received_events_url":"https://api.github.com/users/simonzack/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-02-12T03:04:27Z","updated_at":"2015-02-12T04:36:25Z","closed_at":"2015-02-12T04:36:25Z","body":"A class which extends itself isn't compiled correctly:\r\n\r\n    class A {\r\n        ...\r\n    }\r\n\r\n    class A extends A {\r\n        ...\r\n    }\r\n\r\nI think the error comes from:\r\n\r\n    inherits(A, A);\r\n\r\nA workaround is to do:\r\n\r\n    var A_ = A;\r\n    class A extends A_ {\r\n\r\n    }\r\n\r\n"}}