summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-10-27 10:10:47 +0000
committerpaltherr <paltherr@epfl.ch>2003-10-27 10:10:47 +0000
commite9b85b2806694aedd1363bc7c6016cb2c6defbe3 (patch)
tree71a91a40152c8bfb3cf7dc2daa8f3b7777393fa4 /sources
parent7a7fd08c62fa7dcbe36707a1483416a150d1640b (diff)
downloadscala-e9b85b2806694aedd1363bc7c6016cb2c6defbe3.tar.gz
scala-e9b85b2806694aedd1363bc7c6016cb2c6defbe3.tar.bz2
scala-e9b85b2806694aedd1363bc7c6016cb2c6defbe3.zip
- Added removal of types of this
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/transformer/AddInterfacesPhase.java4
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 =