aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/pos/t7689.scala
blob: 022e7ab7a01f99ff1806e33bf3900cabc577b32f (plain) (tree)
1
2
3
4
5
6
7






                                                                            
object A {
  // The default getter must have an explicit return type (List[_] => Int)
  // This wasn't happening since e28c3edda4. That commit encoded upper/lower
  // bounds of Any/Nothing as EmptyTree, which were triggering an .isEmpty
  // check in Namers#TypeTreeSubstitutor
  def x(f: List[_] => Int = _ => 3) = 9
}