Skip to content

Commit 896d2ef

Browse files
committed
Fix-#1824 Logic fix in desugar
An operation was performed quadratically before.
1 parent 7866bc2 commit 896d2ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ object desugar {
150150
val epbuf = new ListBuffer[ValDef]
151151
def desugarContextBounds(rhs: Tree): Tree = rhs match {
152152
case ContextBounds(tbounds, cxbounds) =>
153-
for (cxbound <- cxbounds)
154-
epbuf ++= makeImplicitParameters(cxbounds, isPrimaryConstructor)
153+
epbuf ++= makeImplicitParameters(cxbounds, isPrimaryConstructor)
155154
tbounds
156155
case PolyTypeTree(tparams, body) =>
157156
cpy.PolyTypeTree(rhs)(tparams, desugarContextBounds(body))

0 commit comments

Comments
 (0)