blob: ef1963669c4b55a479bbdb4f80079b5f95989310 (
plain) (
tree)
|
|
package bippy {
trait Bippy[A] extends Any
}
package foo {
package object unrelated {
implicit def bippyDingo[A](x: bippy.Bippy[A]): AnyRef = Nil
}
package unrelated {
trait Unrelated
}
}
object Test {
trait Dingo extends Any with bippy.Bippy[foo.unrelated.Unrelated]
def f(x: Dingo): AnyRef = x // fail - no conversion to AnyRef
var x: Int = null // fail - no conversion from Null
}
|