summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2007-04-11 11:08:03 +0000
committerMartin Odersky <odersky@gmail.com>2007-04-11 11:08:03 +0000
commitba3e6db5b8a0a7a35f895e6549b2b764fdf61039 (patch)
tree17c7b67b1b1a655ada8cba6f5eb77987ad12e661 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parent28d40d21d0d29ff4c2f002090eeafd2c53817c64 (diff)
downloadscala-ba3e6db5b8a0a7a35f895e6549b2b764fdf61039.tar.gz
scala-ba3e6db5b8a0a7a35f895e6549b2b764fdf61039.tar.bz2
scala-ba3e6db5b8a0a7a35f895e6549b2b764fdf61039.zip
fixed problem with compiling bug115
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
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,