summaryrefslogtreecommitdiff
path: root/test/files/pos/sam_erasure_boundedwild.scala
blob: 1ec27e0ea4e6b49d52eddd5d1cc61120d6d34348 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
class Test {
  trait Q[T] {
    def toArray[T](x: Array[T]): Array[T]
    def toArray(): Array[T]
  }

  def crashTyper: Array[_] = {
   val x : Q[_] = ???
   x.toArray // crashes while doing overload resolution
  }
}