blob: 15b941bc414b3fefcbf264c7ae0f94d5204a7699 (
plain) (
tree)
|
|
object Lizt {
val empty = new Lizt[Nothing] {
def cons[A](a : A): Unit = {}
}
}
trait Lizt[A] {
def cons(a : A) : Unit
}
class Test {
abstract class C[A] {}
val c = new C[Int] {
def f[A](x: A): Unit = {}
}
}
|