diff options
author | paltherr <paltherr@epfl.ch> | 2003-07-26 10:44:02 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-07-26 10:44:02 +0000 |
commit | 40e05d7679d468d182f095b68f5f5d7fc87bda25 (patch) | |
tree | a74ee04b593f330123bf2b88abf3cfd9b5ce598b /sources/scalac/transformer | |
parent | 60ec6920d93b13afdf557dab5f176603c65e1f6a (diff) | |
download | scala-40e05d7679d468d182f095b68f5f5d7fc87bda25.tar.gz scala-40e05d7679d468d182f095b68f5f5d7fc87bda25.tar.bz2 scala-40e05d7679d468d182f095b68f5f5d7fc87bda25.zip |
- Fixed makeClass to reuse the class template s...
- Fixed makeClass to reuse the class template symbol
Diffstat (limited to 'sources/scalac/transformer')
-rw-r--r-- | sources/scalac/transformer/AddInterfaces.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/scalac/transformer/AddInterfaces.java b/sources/scalac/transformer/AddInterfaces.java index 87266aa5e4..195bb899fb 100644 --- a/sources/scalac/transformer/AddInterfaces.java +++ b/sources/scalac/transformer/AddInterfaces.java @@ -324,7 +324,9 @@ class AddInterfaces extends Transformer { Tree[] newClassParents = gen.mkParentConstrs(classDef.pos, newParents, parentArgs); - return gen.ClassDef(classSym, newClassParents, newClassBody.toArray()); + Symbol local = classDef.impl.symbol(); + local.setOwner(classSym); + return gen.ClassDef(classSym, newClassParents, local, newClassBody.toArray()); } protected Tree[][] extractParentArgs(Tree[] parents) { |