summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-06-02 23:45:51 +0000
committerPaul Phillips <paulp@improving.org>2009-06-02 23:45:51 +0000
commit7d7b037bd0c52ce4af09f2177c995b4dd3a7fdc6 (patch)
tree4fa510915990140ddad9ab2db577dedd0aafc07f /src
parentcf4c6c334a045b6da6ad9ea0249a6602e9558649 (diff)
downloadscala-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.scala4
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