blob: 62f10b3ea90d9bc9ebcd91d6e2d5b9c59e631ba3 (
plain) (
tree)
|
|
object autoTuplingNeg2 {
val x = Some(1, 2) // error: too many arguments for method apply: (x: A)Some[A]
x match {
case Some(a, b) => a + b // error: wrong number of argument patterns for Some // error: not found: b
case None =>
}
}
|