diff options
Diffstat (limited to 'src')
-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) => |