blob: f6ff0b63e4f54317183a18de1e04898984aa4892 (
plain) (
tree)
|
|
object Test {
def main(args: Array[String]): Unit = {
println((new Foo: Baz).value)
println((new Foo: Qux).value)
}
}
class Foo extends Bar[Boolean](true) with Baz with Qux
class Bar[T](x: T) {
def value: T = x
}
trait Baz {
def value: Boolean
}
trait Qux {
def value: Boolean
}
|