aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/pos-bug1241.scala
blob: be8615d323a56d4f6b214f7c0a04029cabe266d3 (plain) (blame)
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: T = new { def hello(): Unit = { println("4") } }        // error!
  x4.hello()
  // more..
}