blob: 9877f99d0a1524c8b7bf942a18c86a4252c08ba9 (
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 }
}
|