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.