legacy-svn-scala/test/files/neg/t0345.scala

16 lines
234 B
Scala
Executable File

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