Conditional type inference regression in 4.2* #43192
Labels
Breaking Change
Would introduce errors in existing code
Working as Intended
The behavior described is the intended behavior; this is not a bug
Bug Report
π Search Terms
"conditional type inference"
π Version & Regression Information
This changed between versions 4.1.5 and 4.2.2
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
MyFavoriteFruitsSubsetKey
can be properly inferred on TS 4.1.5 but not on 4.2.3 (we tried migrating to 4.2.2 locally and this broke so the change in behavior is somewhere between 4.1.5 and 4.2.2)π Expected behavior
MyFavoriteFruitsSubsetKey
should be properly inferred on both versions. Could be we're doing a thing we shouldn't be doing in the first place, but it's strange that it only kind of breaks and doesn't completely break.The text was updated successfully, but these errors were encountered: