Skip to content

Commit dec67e9

Browse files
committed
Address review
1 parent 911f05d commit dec67e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ object desugar {
915915
case _ =>
916916
def isTuplePattern(arity: Int): Boolean = pat match {
917917
case Tuple(pats) if pats.size == arity =>
918-
pats.forall(id => id.isInstanceOf[Ident] && isVarPattern(id))
918+
pats.forall(isVarPattern(id)
919919
case _ => false
920920
}
921921
val isMatchingTuple: Tree => Boolean = {
@@ -928,7 +928,7 @@ object desugar {
928928
// - `pat` is a tuple of N variables or wildcard patterns like `(x1, x2, ..., xN)`
929929
val tupleOptimizable = forallResults(rhs, isMatchingTuple)
930930

931-
val rhsUnchecked = makeAnnotated("scala.unchecked", rhs)
931+
def rhsUnchecked = makeAnnotated("scala.unchecked", rhs)
932932
val vars =
933933
if (tupleOptimizable) // include `_`
934934
pat match {

0 commit comments

Comments
 (0)