diff options
Diffstat (limited to 'sources')
-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 = |