# Bug Report <!-- Please fill in each section completely. Thank you! --> ### 🔎 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 ____yes_____ - I was unable to test this on prior versions because __tested on prior versions, is regression_____ ### ⏯ Playground Link <!-- A link to a TypeScript Playground "Share" link which shows this behavior The TypeScript Workbench can be used for more complex setups, try https://www.typescriptlang.org/dev/bug-workbench/ As a last resort, you can link to a repo, but these will be slower for us to investigate. --> [Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.9.4#code/C4TwDgpgBA4lC8UDeUwCcD2YDOAuKAFAFBTJQCG+KAZhhvgIxQC+zJUAZGZWQEblp8AJhZsAlM05l0WPNypQAjgFcAHvgDMrNkQDGGAHbZgUAOb44iJOxk4q7Uj2ukXUWvSgMANA5f9BUEI+rqQq6lAawS5spGzMQA) ### 💻 Code <!-- Please post the relevant code sample here as well--> ```ts type G = { props: ( { a: { foo: 1 }} & { a: { bar: 2 }} )} & { props: { a: { qux: 3}}} const g: G = { props: { a: { foo: 1, bar: 2, qux: 3, // gives error in 4.9, not in 4.8 } } } ``` ### 🙁 Actual behavior qux gives error: > Object literal may only specify known properties ### 🙂 Expected behavior Continues working as it had before
Activity
[-]Deep unions stopped working in 4.9[/-][+]Deep intersections stopped working in 4.9[/+]SephReed commentedon Jan 24, 2023
This one still works:
RyanCavanaugh commentedon Jan 24, 2023
Tracking at #52252 since the PR to fix that one also fixes this one
typescript-bot commentedon Jan 27, 2023
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.