summaryrefslogtreecommitdiff
path: root/test/files/pos/bug4269.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-04-23 15:14:59 +0000
committerPaul Phillips <paulp@improving.org>2011-04-23 15:14:59 +0000
commitffe789dd78c24dc82a74553f2634c6ebb1a32e38 (patch)
treedb6d44a39877ec89c0a4ed3f1017f5a14dacf4f7 /test/files/pos/bug4269.scala
parent6af1d5c526a6394065bb8d42ff1df36e8cb4272b (diff)
downloadscala-ffe789dd78c24dc82a74553f2634c6ebb1a32e38.tar.gz
scala-ffe789dd78c24dc82a74553f2634c6ebb1a32e38.tar.bz2
scala-ffe789dd78c24dc82a74553f2634c6ebb1a32e38.zip
Strip unused pattern variable bindings out befo...
Strip unused pattern variable bindings out before performing match translation. Closes #4269, no review.
Diffstat (limited to 'test/files/pos/bug4269.scala')
-rw-r--r--test/files/pos/bug4269.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/pos/bug4269.scala b/test/files/pos/bug4269.scala
new file mode 100644
index 0000000000..99a30785b4
--- /dev/null
+++ b/test/files/pos/bug4269.scala
@@ -0,0 +1,5 @@
+class A {
+ PartialFunction.condOpt(Nil) {
+ case items@List(_*) if true =>
+ }
+}