summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-02-11 13:50:59 -0800
committerPaul Phillips <paulp@improving.org>2012-02-11 23:46:39 -0800
commit0de6e8a7a72a52e78ab7ef158dbc1f3fd3e9eae6 (patch)
tree69895d179d4cc70df714d34394a921078b922d30 /src
parent7a6fa80937dec6c60efe53c915dfa3ba76b3af87 (diff)
downloadscala-0de6e8a7a72a52e78ab7ef158dbc1f3fd3e9eae6.tar.gz
scala-0de6e8a7a72a52e78ab7ef158dbc1f3fd3e9eae6.tar.bz2
scala-0de6e8a7a72a52e78ab7ef158dbc1f3fd3e9eae6.zip
Fixed bug in DefDef creation.
What's improbable about 29f933b60 is that a good chunk of the commit exists only so you can pass "mods" to the DefDef constructor. And then the body isn't updated to use it, the parameter dies on the vine. That was five years ago. I logged when mods didn't match Modifiers(sym.flags) and there were a bunch of differences, but I didn't see any interesting behavior emerging. Still, I bet something changed somewhere (hopefully in the fixy direction.)
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/reflect/internal/Trees.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/reflect/internal/Trees.scala b/src/compiler/scala/reflect/internal/Trees.scala
index 6ce6a7fac0..958d04732b 100644
--- a/src/compiler/scala/reflect/internal/Trees.scala
+++ b/src/compiler/scala/reflect/internal/Trees.scala
@@ -189,7 +189,7 @@ trait Trees extends api.Trees { self: SymbolTable =>
def DefDef(sym: Symbol, mods: Modifiers, vparamss: List[List[ValDef]], rhs: Tree): DefDef =
atPos(sym.pos) {
assert(sym != NoSymbol)
- DefDef(Modifiers(sym.flags),
+ DefDef(mods,
sym.name.toTermName,
sym.typeParams map TypeDef,
vparamss,