Skip to content

Commit

Permalink
Merge pull request #9500 from retronym/cleanup-cleanup
Browse files Browse the repository at this point in the history
Fix non-exhaustive match in Cleanup phase
  • Loading branch information
lrytz committed Feb 17, 2021
2 parents eab3ce8 + f4da037 commit 2ee5f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/scala/tools/nsc/transform/CleanUp.scala
Expand Up @@ -492,7 +492,7 @@ abstract class CleanUp extends Statics with Transform with ast.TreeDSL {
classTagEvidence.attachments.get[analyzer.MacroExpansionAttachment] match {
case Some(att) if att.expandee.symbol.name == nme.materializeClassTag && tree.isInstanceOf[ApplyToImplicitArgs] =>
super.transform(arg)
case None =>
case _ =>
localTyper.typedPos(tree.pos) {
gen.evalOnce(classTagEvidence, currentOwner, unit) { ev =>
val arr = localTyper.typedPos(tree.pos)(gen.mkMethodCall(classTagEvidence, definitions.ClassTagClass.info.decl(nme.newArray), Nil, Literal(Constant(elems.size)) :: Nil))
Expand Down

0 comments on commit 2ee5f6c

Please sign in to comment.