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



                                   
                                                              

           
                                                                                


                
import dotty.language.noAutoTupling

object autoTuplingNeg {

  val x = Some(1, 2)                                  // error

  x match {
    case Some(a, b) => a + b                          // error // error // error
    case None =>
  }
}