blob: 30c58be3dcd1caa011cb216efe029d12efe4863e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
object Test {
var FALSE = false
def main(args: Array[String]): Unit = {
val SomeB = new B
new B() match {
case SomeB if FALSE =>
case SomeB =>
case Ext(_) =>
}
}
}
object Ext {
def unapply(s: A) = Some(())
}
class A
class B extends A
|