diff options
author | Paul Phillips <paulp@improving.org> | 2009-06-02 23:45:51 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-06-02 23:45:51 +0000 |
commit | 7d7b037bd0c52ce4af09f2177c995b4dd3a7fdc6 (patch) | |
tree | 4fa510915990140ddad9ab2db577dedd0aafc07f /src | |
parent | cf4c6c334a045b6da6ad9ea0249a6602e9558649 (diff) | |
download | scala-7d7b037bd0c52ce4af09f2177c995b4dd3a7fdc6.tar.gz scala-7d7b037bd0c52ce4af09f2177c995b4dd3a7fdc6.tar.bz2 scala-7d7b037bd0c52ce4af09f2177c995b4dd3a7fdc6.zip |
Working around failing names-defaults test.
Diffstat (limited to 'src')
-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 |