blob: 809a286c0ee5021616d711721b4806c16583116e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import scala.language.existentials
class Bar[T]
class Test {
def method = {
object Foo {
implicit def x: Bar[Foo.type] = new Bar[Foo.type]
}
type T = Foo.type
{
object Foo
implicitly[Bar[T]]
}
}
}
|