aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/customArgs/autoTuplingTest.scala
blob: 7321a83827bbaf6997d53ad0be85664e686c1be8 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                                                 
object autoTupling {

  val x = Some(1, 2)                                  // error when running with -language:noAutoTupling

  x match {
    case Some(a, b) => a + b                          // error // error when running with -language:noAutoTupling
    case None =>
  }
}