From 7d7b037bd0c52ce4af09f2177c995b4dd3a7fdc6 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 2 Jun 2009 23:45:51 +0000 Subject: Working around failing names-defaults test. --- src/compiler/scala/tools/nsc/ast/Trees.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler') 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 -- cgit v1.2.3