Title: Deep intersections stopped working in 4.9 · Issue #52397 · microsoft/TypeScript · GitHub
Open Graph Title: Deep intersections stopped working in 4.9 · Issue #52397 · microsoft/TypeScript
X Title: Deep intersections stopped working in 4.9 · Issue #52397 · microsoft/TypeScript
Description: Bug Report 🔎 Search Terms Deep union no longer work 🕗 Version & Regression Information This is a crash: no This changed between versions _4.8 and 4.9 This is the behavior in every version I tried, and I reviewed the FAQ for entries about...
Open Graph Description: Bug Report 🔎 Search Terms Deep union no longer work 🕗 Version & Regression Information This is a crash: no This changed between versions _4.8 and 4.9 This is the behavior in every version I tried, ...
X Description: Bug Report 🔎 Search Terms Deep union no longer work 🕗 Version & Regression Information This is a crash: no This changed between versions _4.8 and 4.9 This is the behavior in every version I tri...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/52397
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deep intersections stopped working in 4.9","articleBody":"# Bug Report\r\n\r\n\u003c!--\r\n Please fill in each section completely. Thank you!\r\n-->\r\n\r\n### 🔎 Search Terms\r\n\r\nDeep union no longer work\r\n\r\n### 🕗 Version & Regression Information\r\n\r\n\r\n- This is a crash: no\r\n- This changed between versions ____4.8__ and ___4.9____\r\n- This is the behavior in every version I tried, and I reviewed the FAQ for entries about ____yes_____\r\n- I was unable to test this on prior versions because __tested on prior versions, is regression_____\r\n\r\n### ⏯ Playground Link\r\n\r\n\u003c!--\r\n A link to a TypeScript Playground \"Share\" link which shows this behavior\r\n\r\n The TypeScript Workbench can be used for more complex setups, try\r\n https://www.typescriptlang.org/dev/bug-workbench/\r\n\r\n As a last resort, you can link to a repo, but these will be slower for us to investigate.\r\n-->\r\n[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.9.4#code/C4TwDgpgBA4lC8UDeUwCcD2YDOAuKAFAFBTJQCG+KAZhhvgIxQC+zJUAZGZWQEblp8AJhZsAlM05l0WPNypQAjgFcAHvgDMrNkQDGGAHbZgUAOb44iJOxk4q7Uj2ukXUWvSgMANA5f9BUEI+rqQq6lAawS5spGzMQA)\r\n\r\n\r\n### 💻 Code\r\n\r\n\u003c!-- Please post the relevant code sample here as well-->\r\n```ts\r\ntype G = { props: (\r\n { a: { foo: 1 }}\r\n & { a: { bar: 2 }}\r\n)} & { props: { a: { qux: 3}}}\r\n\r\nconst g: G = {\r\n props: {\r\n a: {\r\n foo: 1,\r\n bar: 2,\r\n qux: 3, // gives error in 4.9, not in 4.8\r\n }\r\n }\r\n}\r\n```\r\n\r\n### 🙁 Actual behavior\r\n\r\nqux gives error:\r\n> Object literal may only specify known properties\r\n\r\n### 🙂 Expected behavior\r\n\r\nContinues working as it had before\r\n","author":{"url":"https://github.com/SephReed","@type":"Person","name":"SephReed"},"datePublished":"2023-01-24T20:59:36Z","url":"https://github.com/microsoft/TypeScript/issues/52397"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e6a8432c-9f26-8afa-4185-6d188c2c95cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C18C:1050BD:41D634:574B4E:6B01978F |
| html-safe-nonce | 6d7a182afbd56bfd5fdd2277aa29a9a7a12834e4b78f5f6c4c6938e2f95cf7ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMThDOjEwNTBCRDo0MUQ2MzQ6NTc0QjRFOjZCMDE5NzhGIiwidmlzaXRvcl9pZCI6IjEwMTY4NjkxMjcyODcwNTIxNzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4af37df05d90a8d9487357889ed598566e95f87cf9de0d53490b7f4eb7f4d371 |
| hovercard-subject-tag | issue:1555658566 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/52397/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7f36e7a429a6999791cec572606c5121c5127951ba27246f86d179a00a0563f3/microsoft/TypeScript/issues/52397 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7f36e7a429a6999791cec572606c5121c5127951ba27246f86d179a00a0563f3/microsoft/TypeScript/issues/52397 |
| og:image:alt | Bug Report 🔎 Search Terms Deep union no longer work 🕗 Version & Regression Information This is a crash: no This changed between versions _4.8 and 4.9 This is the behavior in every version I tried, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SephReed |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width