You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior: error, probably by intersecting the forward/backward inferences into "Option" & "Either" then realizing there is no valid intersection.
Actual behavior: forward and backward tag inferences are reconciliated as "Option" | "Either", causing the x3 to (erroneously) pass.
The text was updated successfully, but these errors were encountered:
Picking the largest type among the inference candidates is foundational to the inference algorithm. You'd want #14829 to make the second reference to F be excluded from the candidate set.
Minimum repro based on gcanti/fp-ts#204 (comment), also featuring @gcanti's HKT hack from #1213 (comment).
TypeScript Version: 2.6.1-insiders.20171019 (Playground)
Code
Expected behavior: error, probably by intersecting the forward/backward inferences into
"Option" & "Either"
then realizing there is no valid intersection.Actual behavior: forward and backward tag inferences are reconciliated as
"Option" | "Either"
, causing thex3
to (erroneously) pass.The text was updated successfully, but these errors were encountered: