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
traitTc1[A]
traitTc2[A]
classXobjectX {
implicitdefcatchAll[F[_]]:F[X] =???
}
typeManualLambda[a] =Tc1[a] &Tc2[a]
objectappextendsApp {
implicitly[Tc1[X]] //ok
implicitly[ManualLambda[X]] // ok
implicitly[Tc1[X] &Tc2[X]] // no implicit argument of type Tc1[X] & Tc2[X] was found for parameter ev of method implicitly in object DottyPredef
}
Expected: catchAll should make nearly all implicit searches succeed for X (Scala 2 behavior)
Actual:
search for Tc1[X] & Tc2[X] fails with
no implicit argument of type Tc1[X] & Tc2[X] was found for parameter ev of method implicitly in object DottyPredef
Note that catchAll is not mentioned in the error as it was not considered, meanwhile search for ManualLambda succeeds. Seems like dotty doesn't create the equivalent of ManualLambda to fill F parameter currently
The text was updated successfully, but these errors were encountered:
Example:
Expected:
catchAll
should make nearly all implicit searches succeed forX
(Scala 2 behavior)Actual:
search for
Tc1[X] & Tc2[X]
fails withNote that
catchAll
is not mentioned in the error as it was not considered, meanwhile search forManualLambda
succeeds. Seems like dotty doesn't create the equivalent ofManualLambda
to fillF
parameter currentlyThe text was updated successfully, but these errors were encountered: