aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t8315.scala
blob: f56cfda7a97855b45984526ddbb83fc483990cba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
object Test {
  def crash(as: Listt): Unit = {
    map(as, (_: Any) => return)
  }

  final def map(x: Listt, f: Any => Any): Any = {
    if (x eq Nill) "" else f("")
  }
}

object Nill extends Listt
class Listt