summaryrefslogblamecommitdiff
path: root/test/files/neg/t5761.scala
blob: 040c4eb75a939e5897ea077dd44ad0856bcb39c4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                     
class D[-A](x: A) { }

object Test1 {
  println(new D[Int]{})   // crash
}

object Test2 {
  println(new D[Int]())   // no crash
  println(new D[Int]{})   // crash
}

object Test3 {
  new Tread("sth") { }.run()
}