diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/matching/TransMatcher.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/TransMatcher.scala b/src/compiler/scala/tools/nsc/matching/TransMatcher.scala index b3ab6429b0..583adfddff 100644 --- a/src/compiler/scala/tools/nsc/matching/TransMatcher.scala +++ b/src/compiler/scala/tools/nsc/matching/TransMatcher.scala @@ -30,7 +30,7 @@ trait TransMatcher { protected def isRightIgnoring(p: ArrayValue): Boolean = { def isDefaultStar(tree: Tree): Boolean = tree match { case Bind(_, q) => isDefaultStar(q) - case Star(Ident(nme.WILDCARD)) => true + case Star(q) => isDefaultPattern(q) case _ => false } |