summaryrefslogblamecommitdiff
path: root/test/files/neg/bug1241.check
blob: 2a892a274c73aef440c7c40944471e20f1858370 (plain) (tree)
1
2
3
4
5
6
7






                                                                               
bug1241.scala:5: error: class type required but AnyRef{def hello(): Unit} found
  val x4 = new T { def hello() { println("4") } }        // error!
               ^
bug1241.scala:5: error: AnyRef{def hello(): Unit} does not have a constructor
  val x4 = new T { def hello() { println("4") } }        // error!
           ^
two errors found