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