blob: 8ec931fe78fab2315150fed0f3f6f9a928330824 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
class Test {
def combine = this match {
case that if that eq this => this // just return this
case that: Test2 =>
println(that)
this
case _ => sys.error("meh")
}
}
class Test2 extends Test
|