aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/neg/t1241.scala
blob: 1956d1678abba82f27816cd5aaf17098c4f4fc3a (plain) (tree)
1
2
3
4
5
6
7
8







                                                                          
object test extends App {
  // more..
  type T = { def hello() }
  //val x4 = new AnyRef { def hello() { println("4") } } // ok!
  val x4 = new T { def hello(): Unit = { println("4") } }        // error!
  x4.hello()
  // more..
}