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

           
                                                                                                        


                
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 =>
  }
}