diff options
author | Martin Odersky <odersky@gmail.com> | 2007-04-11 11:08:03 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-04-11 11:08:03 +0000 |
commit | ba3e6db5b8a0a7a35f895e6549b2b764fdf61039 (patch) | |
tree | 17c7b67b1b1a655ada8cba6f5eb77987ad12e661 /src | |
parent | 28d40d21d0d29ff4c2f002090eeafd2c53817c64 (diff) | |
download | scala-ba3e6db5b8a0a7a35f895e6549b2b764fdf61039.tar.gz scala-ba3e6db5b8a0a7a35f895e6549b2b764fdf61039.tar.bz2 scala-ba3e6db5b8a0a7a35f895e6549b2b764fdf61039.zip |
fixed problem with compiling bug115
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index 326597fe99..13d21c9fa6 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -772,7 +772,7 @@ trait Typers requires Analyzer { // A method to replace a super reference by a New in a supercall def transformSuperCall(scall: Tree): Tree = (scall: @unchecked) match { case Apply(fn, args) => - copy.Apply(scall, transformSuperCall(fn), args) + copy.Apply(scall, transformSuperCall(fn), args map (.duplicate)) case Select(Super(_, _), nme.CONSTRUCTOR) => copy.Select( scall, |