Skip to content

Commit 90226bd

Browse files
committed
Some small tweaks
1 parent 8c4323f commit 90226bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ object PatternMatcher {
178178
}
179179

180180
/** Rewrite (repeatedly) `x @ (p: T)` to `(x @ p): T`
181-
* This brings out the type tests to wheere they can be analyzed.
181+
* This brings out the type tests to where they can be analyzed.
182182
*/
183183
private def swapBind(tree: Tree): Tree = tree match {
184184
case Bind(name, pat0) =>
@@ -423,7 +423,6 @@ object PatternMatcher {
423423
if (refCount(label) == 1) transform(labelled(label))
424424
else plan
425425
}
426-
val LetPlan(sym, body) = plan
427426
transform(plan)
428427
}
429428

@@ -504,7 +503,8 @@ object PatternMatcher {
504503
}
505504

506505
def recur(plan: Plan): List[Plan] = plan match {
507-
case TestPlan(EqualTest(tree), scrut, _, _, onf) if scrut === scrutinee && isIntConst(tree) =>
506+
case TestPlan(EqualTest(tree), scrut, _, _, onf)
507+
if scrut === scrutinee && isIntConst(tree) =>
508508
plan :: recur(onf)
509509
case _ =>
510510
plan :: Nil

0 commit comments

Comments
 (0)