{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2400","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/2400/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2400/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2400/events","html_url":"https://github.com/babel/babel/issues/2400","id":107267960,"number":2400,"title":"Compile error on Flow-Typed arrow function","user":{"login":"jasonkuhrt","id":284476,"avatar_url":"https://avatars.githubusercontent.com/u/284476?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonkuhrt","html_url":"https://github.com/jasonkuhrt","followers_url":"https://api.github.com/users/jasonkuhrt/followers","following_url":"https://api.github.com/users/jasonkuhrt/following{/other_user}","gists_url":"https://api.github.com/users/jasonkuhrt/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonkuhrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonkuhrt/subscriptions","organizations_url":"https://api.github.com/users/jasonkuhrt/orgs","repos_url":"https://api.github.com/users/jasonkuhrt/repos","events_url":"https://api.github.com/users/jasonkuhrt/events{/privacy}","received_events_url":"https://api.github.com/users/jasonkuhrt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2015-09-18T20:01:29Z","updated_at":"2016-09-08T14:34:51Z","closed_at":"2016-09-08T14:14:11Z","body":"This confuses babel (the compile error falls down the source file):\r\n\r\n```js\r\nconst find = <X> (f: (x:X) => X, xs: Array<X>): ?X => (\r\n  xs.reduce(((b, x) => b ? b : f(x) ? x : null), null)\r\n)\r\n```\r\n```\r\nSyntaxError: lib/utils.js: Unexpected token (25:2)\r\n  23 |\r\n  24 | const equalRecords = (o1, o2) => {\r\n> 25 |   for (const key in o1) if (o1[key] !== o2[key]) return false\r\n     |   ^\r\n  26 |   return true\r\n  27 | }\r\n  28 |\r\n```\r\n\r\nBut using `function` variant works just fine:\r\n\r\n```js\r\nconst find = function <X> (f: (x:X) => X, xs: Array<X>): ?X {\r\n  return xs.reduce(((b, x) => b ? b : f(x) ? x : null), null)\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/245617841","html_url":"https://github.com/babel/babel/issues/2400#issuecomment-245617841","issue_url":"https://api.github.com/repos/babel/babel/issues/2400","id":245617841,"user":{"login":"hzoo","id":588473,"avatar_url":"https://avatars.githubusercontent.com/u/588473?v=3","gravatar_id":"","url":"https://api.github.com/users/hzoo","html_url":"https://github.com/hzoo","followers_url":"https://api.github.com/users/hzoo/followers","following_url":"https://api.github.com/users/hzoo/following{/other_user}","gists_url":"https://api.github.com/users/hzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/hzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzoo/subscriptions","organizations_url":"https://api.github.com/users/hzoo/orgs","repos_url":"https://api.github.com/users/hzoo/repos","events_url":"https://api.github.com/users/hzoo/events{/privacy}","received_events_url":"https://api.github.com/users/hzoo/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T14:34:51Z","updated_at":"2016-09-08T14:34:51Z","body":"Yeah the output of the repl with react preset - would be nice to specify specific stuff isntead"}}
{"actor":{"display_login":"hzoo"}}