{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/21632","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/21632/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/21632/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/21632/events","html_url":"https://github.com/Microsoft/TypeScript/issues/21632","id":294475899,"number":21632,"title":"TSX type inference is broken when using intersection types","user":{"login":"iyegoroff","id":4447438,"avatar_url":"https://avatars2.githubusercontent.com/u/4447438?v=4","gravatar_id":"","url":"https://api.github.com/users/iyegoroff","html_url":"https://github.com/iyegoroff","followers_url":"https://api.github.com/users/iyegoroff/followers","following_url":"https://api.github.com/users/iyegoroff/following{/other_user}","gists_url":"https://api.github.com/users/iyegoroff/gists{/gist_id}","starred_url":"https://api.github.com/users/iyegoroff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iyegoroff/subscriptions","organizations_url":"https://api.github.com/users/iyegoroff/orgs","repos_url":"https://api.github.com/users/iyegoroff/repos","events_url":"https://api.github.com/users/iyegoroff/events{/privacy}","received_events_url":"https://api.github.com/users/iyegoroff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-05T17:25:18Z","updated_at":"2018-02-05T17:25:18Z","closed_at":null,"author_association":"NONE","body":"<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨 -->\r\n<!--\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n  * Read the CONTRIBUTING guidelines: https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md\r\n  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n-->\r\n\r\n<!-- If you have a QUESTION:\r\n   THIS IS NOT A FORUM FOR QUESTIONS.\r\n   Ask questions at http://stackoverflow.com/questions/tagged/typescript\r\n    or https://gitter.im/Microsoft/TypeScript\r\n-->\r\n\r\n<!-- If you have a SUGGESTION:\r\n  Most suggestion reports are duplicates, please search extra hard before logging a new suggestion.\r\n  See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md\r\n-->\r\n\r\n<!-- If you have a BUG:\r\n  Please fill in the *entire* template below.\r\n-->\r\n\r\n<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:**  2.7.1\r\n\r\n<!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** jsx tsx intersection\r\n\r\n**Code**\r\n\r\n```ts\r\nimport * as React from 'react';\r\n\r\ntype Props<T> = T & {prop: string};\r\n\r\nclass Component<T = {valid: string}> extends React.Component<Props<T>> {}\r\n\r\n<>\r\n  <Component prop={''} invalid={''} />\r\n  <Component prop={''} valid={''} invalid={''}/>\r\n</>\r\n```\r\n\r\n**Expected behavior:**\r\nShould generate 2 errors as in 2.6.2:\r\n```\r\nmain.tsx(8,14): error TS2322: Type '{ prop: \"\"; invalid: \"\"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<{ valid: string; }>> & Readonly<{ childr...'.\r\n  Type '{ prop: \"\"; invalid: \"\"; }' is not assignable to type 'Readonly<Props<{ valid: string; }>>'.\r\n    Property 'valid' is missing in type '{ prop: \"\"; invalid: \"\"; }'.\r\nmain.tsx(9,35): error TS2339: Property 'invalid' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<{ valid: string; }>> & Readonly<{ childr...'.\r\n```\r\n**Actual behavior:**\r\nNo errors are generated\r\n\r\n**Playground Link:** -\r\n\r\n**Related Issues:** maybe related #21427\r\n"}}
{"actor":{"display_login":"iyegoroff"}}