aboutsummaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-12-19 11:49:49 +0100
committerGitHub <noreply@github.com>2016-12-19 11:49:49 +0100
commit52c869ca7aa5a3fdaf2e48bd6d64097b10a28240 (patch)
tree45d3fb959a8ae55a4f9d20e694b91121d35ac84e /compiler
parent36dcd93cb519133ec24783dddcb2feb3a540ace8 (diff)
parent896d2ef14dbfcbb4cdccd54c64948c9ab52b88f7 (diff)
downloaddotty-52c869ca7aa5a3fdaf2e48bd6d64097b10a28240.tar.gz
dotty-52c869ca7aa5a3fdaf2e48bd6d64097b10a28240.tar.bz2
dotty-52c869ca7aa5a3fdaf2e48bd6d64097b10a28240.zip
Merge pull request #1825 from dotty-staging/fix-#1824
Fix #1824: Logic fix in desugar
Diffstat (limited to 'compiler')
-rw-r--r--compiler/src/dotty/tools/dotc/ast/Desugar.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/src/dotty/tools/dotc/ast/Desugar.scala b/compiler/src/dotty/tools/dotc/ast/Desugar.scala
index db78cfffb..13ddff08c 100644
--- a/compiler/src/dotty/tools/dotc/ast/Desugar.scala
+++ b/compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -150,8 +150,7 @@ object desugar {
val epbuf = new ListBuffer[ValDef]
def desugarContextBounds(rhs: Tree): Tree = rhs match {
case ContextBounds(tbounds, cxbounds) =>
- for (cxbound <- cxbounds)
- epbuf ++= makeImplicitParameters(cxbounds, isPrimaryConstructor)
+ epbuf ++= makeImplicitParameters(cxbounds, isPrimaryConstructor)
tbounds
case PolyTypeTree(tparams, body) =>
cpy.PolyTypeTree(rhs)(tparams, desugarContextBounds(body))