Closed
Description
Bug Report
π Search Terms
any union
π Version & Regression Information
- This changed between versions 5.0.0-dev.20221207 and 5.0.0-dev.20221208
β― Playground Link
Playground link with relevant code
π» Code
type Spec = any extends object ? any : string;
type WithSpec<T extends number> = T
type R = WithSpec<Spec> // error here in 5.0
π Actual behavior
Spec
is any | string
so it can't be used with WithSpec
π Expected behavior
any | string
is reduced to any
as it was in 4.9