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
I would expect $Diff to work with multiple type intersections
Actual behavior
$Diff seems to only take one intersection (level) from the top of the tree into account and forgets following intersections
type A = { a: string }
type B = A & { b: string }
type C = B & { c?: string }
const test: $Diff<C, { b: string }> = { a: 'a', c: 'c' }
const c = test.c
Flow version: v0.106.2 and older
Expected behavior
I would expect $Diff to work with multiple type intersections
Actual behavior
$Diff seems to only take one intersection (level) from the top of the tree into account and forgets following intersections
is a minimal example which leads to the error
extended example with workarounds
The text was updated successfully, but these errors were encountered: