1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package object foo { implicit def x123: Bippy = new Bippy("x") } package foo { class Bippy(override val toString: String){ } class Dingus { def f1 = { implicit def z: Bippy = new Bippy("z") implicitly[Bippy] } } object Test extends App { println(new Dingus().f1) } }