summaryrefslogtreecommitdiff
path: root/sources/scalac
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2003-04-16 13:01:04 +0000
committermihaylov <mihaylov@epfl.ch>2003-04-16 13:01:04 +0000
commit6208a4f530a18e0b920d821d1c18a1882c9c2839 (patch)
tree8c8ee4b8746e225960eb4ba228a41306d8faaf2b /sources/scalac
parentd5d9d56f4944868b166b39f5d72c273c07c828a9 (diff)
downloadscala-6208a4f530a18e0b920d821d1c18a1882c9c2839.tar.gz
scala-6208a4f530a18e0b920d821d1c18a1882c9c2839.tar.bz2
scala-6208a4f530a18e0b920d821d1c18a1882c9c2839.zip
- set the trees of the supertypes to be the ol...
- set the trees of the supertypes to be the old supertype trees
Diffstat (limited to 'sources/scalac')
-rw-r--r--sources/scalac/transformer/AddConstructors.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/transformer/AddConstructors.java b/sources/scalac/transformer/AddConstructors.java
index 14ee843677..6031e0df78 100644
--- a/sources/scalac/transformer/AddConstructors.java
+++ b/sources/scalac/transformer/AddConstructors.java
@@ -202,7 +202,7 @@ public class AddConstructors extends Transformer {
Type.compoundType(treeSym.parents(), classScope, treeSym);
Symbol classSym = treeSym.updateInfo(classType);
Tree[] newBody = (Tree[]) classBody.toArray(Tree.EMPTY_ARRAY);
- return gen.ClassDef(classSym, newBody);
+ return gen.ClassDef(classSym, baseClasses, newBody);
// Substitute the constructor into the 'new' expressions
case New(Template(Tree[] baseClasses, _)):