blob: 92126ab5dd60f15c6776d2eac3873e68117acbc5 (
plain) (
tree)
|
|
import language.noAutoTupling
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 =>
}
}
|