aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/autoTuplingTest.scala
blob: 37136b7600063c2b09302b3e8991d8a5c861192c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import dotty.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 =>
  }
}