summaryrefslogtreecommitdiff
path: root/test/files/neg/t4425.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-08-17 08:57:53 -0700
committerPaul Phillips <paulp@improving.org>2013-08-17 10:58:13 -0700
commit35775a8fc87e9f3538e13e8d26f9b151138efe8c (patch)
treea1df773f6a75d87feb6913890fdfb6be42cf90bf /test/files/neg/t4425.check
parente611eeaf4573db8ec16a38cb00705391496ebe0e (diff)
downloadscala-35775a8fc87e9f3538e13e8d26f9b151138efe8c.tar.gz
scala-35775a8fc87e9f3538e13e8d26f9b151138efe8c.tar.bz2
scala-35775a8fc87e9f3538e13e8d26f9b151138efe8c.zip
SI-4425 do some validity checking on unapplies.
Filter out unapplies which can't be called (such as those with a second non-implicit parameter list) and report the error in a meaningful fashion.
Diffstat (limited to 'test/files/neg/t4425.check')
-rw-r--r--test/files/neg/t4425.check3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/files/neg/t4425.check b/test/files/neg/t4425.check
index 0f2fe6f2d1..cb5da6e7dc 100644
--- a/test/files/neg/t4425.check
+++ b/test/files/neg/t4425.check
@@ -1,4 +1,5 @@
-t4425.scala:3: error: isInstanceOf cannot test if value types are references.
+t4425.scala:3: error: object X is not a case class constructor, nor does it have an unapply/unapplySeq method
+Note: def unapply(x: Int)(y: Option[Int]): None.type exists in object X, but it cannot be used as an extractor due to its second non-implicit parameter list
42 match { case _ X _ => () }
^
one error found