summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@typesafe.com>2014-08-26 14:23:15 +0200
committerLukas Rytz <lukas.rytz@typesafe.com>2014-08-26 14:23:15 +0200
commit47908f19e064151140e32819c2edd9e68b34dd0c (patch)
tree7834e70a3991fa4b06973d4c8c7247b70d2e04db /test
parent63a087609855c46c8f376bd2271b8a50583d5c62 (diff)
parenta16a635b647bb1cdb0759ab4ba1e794ec56d8081 (diff)
downloadscala-47908f19e064151140e32819c2edd9e68b34dd0c.tar.gz
scala-47908f19e064151140e32819c2edd9e68b34dd0c.tar.bz2
scala-47908f19e064151140e32819c2edd9e68b34dd0c.zip
Merge pull request #3929 from retronym/ticket/8793
SI-8793 Fix patmat regression with extractors, existentials
Diffstat (limited to 'test')
-rw-r--r--test/files/pos/t8793.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t8793.scala b/test/files/pos/t8793.scala
new file mode 100644
index 0000000000..1276155675
--- /dev/null
+++ b/test/files/pos/t8793.scala
@@ -0,0 +1,15 @@
+package regr
+
+trait F[A]
+
+class G(val a: F[_], val b: F[_])
+
+object G {
+ def unapply(g: G) = Option((g.a, g.b))
+}
+
+object H {
+ def unapply(g: G) = g match {
+ case G(a, _) => Option(a)
+ }
+}