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
@annotation.implicitNotFound("There's no Foo1")
traitFoo1@annotation.implicitNotFound("There's no Foo2")
traitFoo2traitBar12extendsFoo1withFoo2traitBar21extendsFoo2withFoo1objectBar {
implicitly[Bar12]
implicitly[Bar21]
}
Output
no implicit argument of type Bar12 was found for parameter ev of method implicitly in object DottyPredef
no implicit argument of type Bar21 was found for parameter ev of method implicitly in object DottyPredef
Expectation
There's no Foo2
There's no Foo1
According to the comment on scala.annotation.implicitNotFound:
The annotation is effectively inherited by subtypes if they are not annotated.
In scala 2.13 this works as described. Although not explicitly documented, the order of inheritance is taken into account there and it makes sense to keep this behaviour.
The text was updated successfully, but these errors were encountered:
Minimized code
Output
Expectation
According to the comment on
scala.annotation.implicitNotFound
:In scala 2.13 this works as described. Although not explicitly documented, the order of inheritance is taken into account there and it makes sense to keep this behaviour.
The text was updated successfully, but these errors were encountered: