{"action":"closed","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2893","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/2893/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2893/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2893/events","html_url":"https://github.com/babel/babel/issues/2893","id":115641020,"number":2893,"title":"\"Illegal use of bare super\" raised incorrectly in `default` exported class.","user":{"login":"rhys-vdw","id":822105,"avatar_url":"https://avatars.githubusercontent.com/u/822105?v=3","gravatar_id":"","url":"https://api.github.com/users/rhys-vdw","html_url":"https://github.com/rhys-vdw","followers_url":"https://api.github.com/users/rhys-vdw/followers","following_url":"https://api.github.com/users/rhys-vdw/following{/other_user}","gists_url":"https://api.github.com/users/rhys-vdw/gists{/gist_id}","starred_url":"https://api.github.com/users/rhys-vdw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhys-vdw/subscriptions","organizations_url":"https://api.github.com/users/rhys-vdw/orgs","repos_url":"https://api.github.com/users/rhys-vdw/repos","events_url":"https://api.github.com/users/rhys-vdw/events{/privacy}","received_events_url":"https://api.github.com/users/rhys-vdw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-11-07T06:44:37Z","updated_at":"2016-09-07T20:13:13Z","closed_at":"2016-09-07T20:13:13Z","body":"Error raised erroneously under specific conditions:\r\n\r\n - `super` method invocation taking an argument spread operator\r\n - `class` declaration exported by `export default`.\r\n\r\n```js\r\nclass A {};\r\n\r\nexport default class B extends A {\r\n  foo(a, ...args) {\r\n    super.foo(a, ...args);\r\n  }\r\n}\r\n```\r\n\r\nerror output:\r\n```js\r\nSyntaxError: [file]: Illegal use of bare super\r\n  3 | export default class B extends A {\r\n  4 |   foo(a, ...args) {\r\n> 5 |     super.foo(a, ...args);\r\n    |     ^\r\n  6 |   }\r\n  7 | }\r\n  8 |\r\n```\r\n\r\nInfo:\r\n```\r\n6.1.1 (babel-core 6.0.20)\r\n```\r\n\r\n`.babelrc`\r\n```json\r\n{\r\n  \"presets\": [\"es2015\"],\r\n  \"plugins\": [\"syntax-object-rest-spread\", \"transform-object-rest-spread\"]\r\n}\r\n```"}}
{"actor":{"display_login":"babel-bot"}}