Skip to content

Commit 52c869c

Browse files
authored
Merge pull request #1825 from dotty-staging/fix-#1824
Fix #1824: Logic fix in desugar
2 parents 36dcd93 + 896d2ef commit 52c869c

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)