diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2007-08-29 14:05:26 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2007-08-29 14:05:26 +0000 |
commit | 840202e705c9d13ee59515fde29543db81bcea9c (patch) | |
tree | cc5daf1ae8ed534248c96fdf5760444ac518e490 /src | |
parent | 52ab7acfbf8b672831a44ad4c2f595d7bf9eb249 (diff) | |
download | scala-840202e705c9d13ee59515fde29543db81bcea9c.tar.gz scala-840202e705c9d13ee59515fde29543db81bcea9c.tar.bz2 scala-840202e705c9d13ee59515fde29543db81bcea9c.zip |
Fixed double definition bug (ticket #21).
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala index ef5d092fe4..869d16aac5 100644 --- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala +++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala @@ -660,9 +660,9 @@ abstract class RefChecks extends InfoTransform { val ownerTransformer = new ChangeOwnerTraverser(vsym, lazyDefSym) val lazyDef = atPos(tree.pos)( DefDef(lazyDefSym, vparamss => ownerTransformer( - if (tree.symbol.owner.isTrait) transform(rhs) // for traits, this is further tranformed in mixins + if (tree.symbol.owner.isTrait) rhs // for traits, this is further tranformed in mixins else Block(List( - Assign(gen.mkAttributedRef(vsym), transform(rhs))), + Assign(gen.mkAttributedRef(vsym), rhs)), gen.mkAttributedRef(vsym))))) log("Made lazy def: " + lazyDef) typed(ValDef(vsym, EmptyTree)) :: typed(lazyDef) :: Nil |