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





                            
 



                                               
class C1
class C2
class A {
  def f(x: Any) = x
  def g(x: C1): String = "A"
  def g(x: C2): String = "B"

  def crash() = f(List[String]() flatMap { x =>
    if (false) List(g(x)) else List[C1]() map g
  })
}