blob: 1752208f376510a07df8f89f0c35d2c8b7a95efb (
plain) (
tree)
|
|
object test extends App {
// more..
type T = { def hello() }
//val x4 = new AnyRef { def hello() { println("4") } } // ok!
val x4: T = new { def hello() { println("4") } } // error!
x4.hello()
// more..
}
|