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

9 lines
231 B
Scala

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..
}