diff options
author | paltherr <paltherr@epfl.ch> | 2003-10-27 10:10:47 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-10-27 10:10:47 +0000 |
commit | e9b85b2806694aedd1363bc7c6016cb2c6defbe3 (patch) | |
tree | 71a91a40152c8bfb3cf7dc2daa8f3b7777393fa4 | |
parent | 7a7fd08c62fa7dcbe36707a1483416a150d1640b (diff) | |
download | scala-e9b85b2806694aedd1363bc7c6016cb2c6defbe3.tar.gz scala-e9b85b2806694aedd1363bc7c6016cb2c6defbe3.tar.bz2 scala-e9b85b2806694aedd1363bc7c6016cb2c6defbe3.zip |
- Added removal of types of this
-rw-r--r-- | sources/scalac/transformer/AddInterfacesPhase.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/scalac/transformer/AddInterfacesPhase.java b/sources/scalac/transformer/AddInterfacesPhase.java index b5145f4a97..b3f65fd553 100644 --- a/sources/scalac/transformer/AddInterfacesPhase.java +++ b/sources/scalac/transformer/AddInterfacesPhase.java @@ -228,6 +228,10 @@ public class AddInterfacesPhase extends Phase { classMemberMap.put(iConstr, cConstr); } + // Remove type of this + if (classSym.thisSym() != classSym) + classSym.setTypeOfThis(Type.NoType); + // Clone all members, entering them in the class scope. Scope classMembers = new Scope(); Scope.SymbolIterator ifaceMembersIt = |