blob: 2e727e773de84aff45064b00bf015ffdb68ec248 (
plain) (
tree)
|
|
object Foo { def unapply: Option[Int] = Some(42) }
object Foo2 { def unapply(): Option[Int] = Some(42) }
object Test {
def main(args: Array[String]): Unit = {
val Foo(x1) = 1
val Foo2(y2) = 2
()
}
}
|