blob: 333e6c549062819f0aab778b52fbeea9aa4a1c9d (
plain) (
tree)
|
|
object test extends Application {
// 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..
}
|