aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/neg/t3240.scala
blob: fdd86d8eae17e90ab61ae67fa5edcf506ece50ce (plain) (tree)
1
2
3
4
5
6
7
8







                                          
class A {
  val foo = new {
  type t
  def apply(a: Option[t], defVal: Any) = {
       a.getOrElse(defVal).asInstanceOf[t]
     }
  }
}