summaryrefslogblamecommitdiff
path: root/test/files/pos/t2331.scala
blob: 9a15b5c2a9453bab410a7793aba1282628972622 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                             
trait C {
  def m[T]: T
}

object Test {
  val o /*: C --> no crash*/ = new C {
    def m[T]: Nothing /*: T --> no crash*/ = error("omitted")
  }

  o.m[Nothing]
}