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
(coercedTo a f b).typeMerge (coercedTo a2 null b2) = coercedTo (a.typeMerge a2) f (b.typeMerge b2)
(coercedTo a f b).typeMerge b2 = coercedTo a f (b.typeMerge b2)
but since type merging must be symmetric, also b2.typeMerge (coercedTo a f b)... However, coercedTo does not control b2.typeMerge. Can we make all b2.typeMerge try to fall back to b.typeMerge? Prevent infinite (mutual) recursion.
(1) without (2) is already a significant improvement.
Describe the bug
Type merging is not implemented for
coercedTo
.Steps To Reproduce
Have two declarations of type
coercedTo a f b
.Expected behavior
(coercedTo a f b).typeMerge (coercedTo a2 null b2)
=coercedTo (a.typeMerge a2) f (b.typeMerge b2)
(coercedTo a f b).typeMerge b2
=coercedTo a f (b.typeMerge b2)
b2.typeMerge (coercedTo a f b)
... However,coercedTo
does not controlb2.typeMerge
. Can we make allb2.typeMerge
try to fall back tob.typeMerge
? Prevent infinite (mutual) recursion.(1) without (2) is already a significant improvement.
Screenshots
Additional context
Notify maintainers
@infinisil @roberth
Metadata
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: