1
t6667.scala:8: error: Search of in-scope implicits was ambiguous, and the implicit scope was searched. In Scala 2.11.0, this code will not compile. See SI-6667.
2
ambiguous implicit values:
3
both value inScope1 in object Test of type => C
4
and value inScope2 in object Test of type => C
6
implicitly[C]: Unit // C.companion was used; whereas the ambiguity should abort the implicit search.
8
t6667.scala:9: error: ambiguous implicit values:
9
both value inScope1 in object Test of type => C
10
and value inScope2 in object Test of type => C
12
implicitly[C] // ambiguity reported, rather than falling back to C.companion