summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-05-18 20:44:11 -0700
committerPaul Phillips <paulp@improving.org>2012-05-23 08:43:10 -0700
commitc691104b9ee896b96fc161e78d84ec9db2eef215 (patch)
tree508dcd44e49972b16dba420e8e15a580e6771f48 /src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
parent32ee111a0752f21f46db66cfe8dfd6afc8746aa3 (diff)
downloadscala-c691104b9ee896b96fc161e78d84ec9db2eef215.tar.gz
scala-c691104b9ee896b96fc161e78d84ec9db2eef215.tar.bz2
scala-c691104b9ee896b96fc161e78d84ec9db2eef215.zip
Creator for superconstructor tree.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/AddInterfaces.scala')
-rw-r--r--src/compiler/scala/tools/nsc/transform/AddInterfaces.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala b/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
index cb7d64b9fc..e5fc98f23c 100644
--- a/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
+++ b/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
@@ -308,8 +308,7 @@ abstract class AddInterfaces extends InfoTransform { self: Erasure =>
// body until now, because the typer knows that Any has no
// constructor and won't accept a call to super.init.
assert((clazz isSubClass AnyValClass) || clazz.info.parents.isEmpty, clazz)
- val superCall = Apply(Select(Super(This(tpnme.EMPTY), tpnme.EMPTY), nme.CONSTRUCTOR), Nil)
- Block(List(superCall), expr)
+ Block(List(Apply(gen.mkSuperSelect, Nil)), expr)
case Block(stats, expr) =>
// needs `hasSymbol` check because `supercall` could be a block (named / default args)