{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/9107","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/9107/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/9107/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/9107/events","html_url":"https://github.com/Microsoft/TypeScript/issues/9107","id":159837437,"number":9107,"title":"Generics not being inferred in complex case","user":{"login":"2426021684","id":16529951,"avatar_url":"https://avatars2.githubusercontent.com/u/16529951?v=3","gravatar_id":"","url":"https://api.github.com/users/2426021684","html_url":"https://github.com/2426021684","followers_url":"https://api.github.com/users/2426021684/followers","following_url":"https://api.github.com/users/2426021684/following{/other_user}","gists_url":"https://api.github.com/users/2426021684/gists{/gist_id}","starred_url":"https://api.github.com/users/2426021684/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2426021684/subscriptions","organizations_url":"https://api.github.com/users/2426021684/orgs","repos_url":"https://api.github.com/users/2426021684/repos","events_url":"https://api.github.com/users/2426021684/events{/privacy}","received_events_url":"https://api.github.com/users/2426021684/received_events","type":"User","site_admin":false},"labels":[{"id":371615233,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Design%20Limitation","name":"Design Limitation","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-12T17:10:38Z","updated_at":"2017-05-18T20:10:14Z","closed_at":"2016-08-18T17:47:33Z","body":"<!--\nThank you for contributing to TypeScript! Please review this checklist\n       before submitting your issue.\n[ ] Many common issues and suggestions are addressed in the FAQ\n     https://github.com/Microsoft/TypeScript/wiki/FAQ\n[ ] Search for duplicates before logging new issues\n    https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue\n[ ] Questions are best asked and answered at Stack Overflow\n    http://stackoverflow.com/questions/tagged/typescript\n\nFor bug reports, please include the information below.\n__________________________________________________________ -->\n\n**TypeScript Version:** \n\nTypescript playground\n\n**Code**\n\n``` ts\nconst compose = <In, Intermediate_Big, Intermediate_Small extends Intermediate_Big, Out>(f: (x: In)=> Intermediate_Small, g: (x: Intermediate_Big) => Out): (a1: In) => Out => (_ => g(f(_)))\nconst first = <T>(a: T[]): T => a[0]\nconst getText = (_: HTMLElement) => _.innerText\nconst c = compose(first, getText)\n\n```\n\n**Expected behavior:**\nc is of type `(x: HTMLElement[]) => string`\n**Actual behavior:** \nc is of type `(x: {}) => string`\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/302527355","html_url":"https://github.com/Microsoft/TypeScript/issues/9107#issuecomment-302527355","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/9107","id":302527355,"user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars0.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},"created_at":"2017-05-18T20:10:14Z","updated_at":"2017-05-18T20:10:14Z","body":"seems like a duplicate of https://github.com/Microsoft/TypeScript/issues/9366"}}
{"actor":{"display_login":"mhegazy"}}