blob: fb857ebd33226de6d6101e6a825d7637b51f42c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
class C
object C {
implicit def companion = new C
}
object Test {
implicit val inScope1, inScope2 = new C
implicitly[C]: Unit // C.companion was used; whereas the ambiguity should abort the implicit search.
implicitly[C] // ambiguity reported, rather than falling back to C.companion
}
|