blob: f3a1ed1ba0352b88ab9c37c6b3ab15aacc77a749 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
class W[T <: AnyRef](val t: T) {
val v: T {} = t
}
object W {
def apply[T <: AnyRef](t: T) = new W[t.type](t)
}
object RightAssoc {
def ra_:[T](t: T): Unit = ()
}
object Boom {
W("fooo").v ra_: RightAssoc
}
|