blob: ef1963669c4b55a479bbdb4f80079b5f95989310 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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
}
|