blob: 62f87fd7ab398cd6576648632d8ae6677cb9a577 (
plain) (
blame)
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
})
}
|