Closed
Description
Bug Report
🔎 Search Terms
string autocomplete catch all intersection special
🕗 Version & Regression Information
- This changed between versions 4.7 and 4.8
⏯ Playground Link
Playground link with relevant code
💻 Code
declare function a(arg: 'test' | (string & {})): void
a('') // try string completions here
declare function b(arg: 'test' | ({} & string)): void
b('') // try string completions here
🙁 Actual behavior
Since 4.8 the second function doesn't provide completions despite using an intersection with the same members as the first one.
🙂 Expected behavior
I would expect both to behave the same, regardless of the order of the intersection members.