diff options
author | Burak Emir <emir@epfl.ch> | 2006-06-19 09:37:24 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2006-06-19 09:37:24 +0000 |
commit | 35adc1c48a50f0bd707d02f24db5658903e76610 (patch) | |
tree | fda26b588579f1c0d8e7d95d74048796e13f2ac8 /src/compiler | |
parent | c4ad0fba91f84bbe378103a96a003e2ea88f99cb (diff) | |
download | scala-35adc1c48a50f0bd707d02f24db5658903e76610.tar.gz scala-35adc1c48a50f0bd707d02f24db5658903e76610.tar.bz2 scala-35adc1c48a50f0bd707d02f24db5658903e76610.zip |
oops, forgot condition
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/matching/PatternMatchers.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala b/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala index 0d72df5626..1ff21e60eb 100644 --- a/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala +++ b/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala @@ -155,10 +155,10 @@ trait PatternMatchers requires (TransMatcher with PatternNodes) extends AnyRef w case Bind(_, pat) => patternArgs(pat); - case a @ Apply(_, List(av @ ArrayValue(_, ts))) if isRightIgnoring(av) => + case a @ Apply(_, List(av @ ArrayValue(_, ts))) if isSeqApply(a) && isRightIgnoring(av) => ts.reverse.drop(1).reverse - case a @ Apply(_, List(av @ ArrayValue(_, ts))) => + case a @ Apply(_, List(av @ ArrayValue(_, ts))) if isSeqApply(a) => ts case a @ Apply(_, args) => |