blob: e172485753431779c66aea3c68c7f0bf9be00042 (
plain) (
tree)
|
|
object Whatever {
override def equals(x: Any) = true
}
class Test {
// when left to its own devices, and not under -Xfuture, the return type is Whatever.type
def matchWhateverCCE(x: Any) = x match { case n @ Whatever => n }
}
|