diff options
Diffstat (limited to 'tests/neg/autoTuplingTest.scala')
-rw-r--r-- | tests/neg/autoTuplingTest.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/neg/autoTuplingTest.scala b/tests/neg/autoTuplingTest.scala index f72dfb635..37136b760 100644 --- a/tests/neg/autoTuplingTest.scala +++ b/tests/neg/autoTuplingTest.scala @@ -1,11 +1,11 @@ import dotty.language.noAutoTupling -object autoTuplingNeg { +object autoTuplingNeg2 { - val x = Some(1, 2) // error + 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 // error // error + case Some(a, b) => a + b // error: wrong number of argument patterns for Some // error: not found: b case None => } } |