diff options
author | Paul Phillips <paulp@improving.org> | 2013-08-18 09:29:44 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-08-18 13:23:21 -0700 |
commit | 6d77da374e94ea8b80fc0bf9e544e11f4e9d5cc8 (patch) | |
tree | 672e9dfa0343526c77f68d45c7a4698a9dc832dc /test/files | |
parent | a905d0e7e49bf92f119b2fdcd2b9d15b71d64ca2 (diff) | |
download | scala-6d77da374e94ea8b80fc0bf9e544e11f4e9d5cc8.tar.gz scala-6d77da374e94ea8b80fc0bf9e544e11f4e9d5cc8.tar.bz2 scala-6d77da374e94ea8b80fc0bf9e544e11f4e9d5cc8.zip |
Refined name-based patmat methods.
This fleshes out some of the slightly unfinished corners
of the adventure, especially for unapplySeq. There's still
an unhealthy amount of duplication and a paucity of
specification, but I think it's in eminently good shape
for a milestone.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/neg/t4425b.check | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/files/neg/t4425b.check b/test/files/neg/t4425b.check index 3af3027da1..1186e8b609 100644 --- a/test/files/neg/t4425b.check +++ b/test/files/neg/t4425b.check @@ -22,22 +22,22 @@ t4425b.scala:10: error: object X is not a case class constructor, nor does it ha Note: def unapply(x: String)(y: String): Nothing exists in object X, but it cannot be used as an extractor due to its second non-implicit parameter list println((X: Any) match { case X(_, _) => "ok" ; case _ => "fail" }) ^ -t4425b.scala:18: error: wrong number of patterns for object X offering <notype>: expected 1, found 2 +t4425b.scala:18: error: wrong number of patterns for object X offering Nothing: expected 1, found 2 println( "" match { case _ X _ => "ok" ; case _ => "fail" }) ^ -t4425b.scala:19: error: wrong number of patterns for object X offering <notype>: expected 1, found 2 +t4425b.scala:19: error: wrong number of patterns for object X offering Nothing: expected 1, found 2 println((X: Any) match { case _ X _ => "ok" ; case _ => "fail" }) ^ -t4425b.scala:22: error: wrong number of patterns for object X offering <notype>: expected 1, found 2 +t4425b.scala:22: error: wrong number of patterns for object X offering Nothing: expected 1, found 2 println( "" match { case X(_, _) => "ok" ; case _ => "fail" }) ^ -t4425b.scala:22: error: wrong number of patterns for object X offering <notype>: expected 1, found 2 +t4425b.scala:22: error: wrong number of patterns for object X offering Nothing: expected 1, found 2 println( "" match { case X(_, _) => "ok" ; case _ => "fail" }) ^ -t4425b.scala:23: error: wrong number of patterns for object X offering <notype>: expected 1, found 2 +t4425b.scala:23: error: wrong number of patterns for object X offering Nothing: expected 1, found 2 println((X: Any) match { case X(_, _) => "ok" ; case _ => "fail" }) ^ -t4425b.scala:23: error: wrong number of patterns for object X offering <notype>: expected 1, found 2 +t4425b.scala:23: error: wrong number of patterns for object X offering Nothing: expected 1, found 2 println((X: Any) match { case X(_, _) => "ok" ; case _ => "fail" }) ^ t4425b.scala:31: error: wrong number of patterns for object X offering Nothing: expected 1, found 2 |