diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/Trees.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/Trees.scala b/src/compiler/scala/tools/nsc/ast/Trees.scala index 02768ddb5b..3c3e29de32 100644 --- a/src/compiler/scala/tools/nsc/ast/Trees.scala +++ b/src/compiler/scala/tools/nsc/ast/Trees.scala @@ -575,8 +575,8 @@ trait Trees { vparamss map (vps => vps.map { vd => atPos(vd) { ValDef( - Modifiers(vd.mods.flags & IMPLICIT | PARAM) withAnnotations vd.mods.annotations, - vd.name, atPos(vd.tpt) { vd.tpt.duplicate }, EmptyTree) + Modifiers(vd.mods.flags & (IMPLICIT | DEFAULTPARAM) | PARAM) withAnnotations vd.mods.annotations, + vd.name, atPos(vd.tpt) { vd.tpt.duplicate }, vd.rhs.duplicate) }}) val (edefs, rest) = body span treeInfo.isEarlyDef val (evdefs, etdefs) = edefs partition treeInfo.isEarlyValDef |