summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschinz <schinz@epfl.ch>2003-03-04 11:39:37 +0000
committerschinz <schinz@epfl.ch>2003-03-04 11:39:37 +0000
commitfc497536ed884b4d18860f6db644d4143412c2f5 (patch)
tree0f9908412896725eea4e4982d916ddb11e0be3b0
parente5583b7c1132cb2f35cef316507f5d2b4a18dbe3 (diff)
downloadscala-fc497536ed884b4d18860f6db644d4143412c2f5.tar.gz
scala-fc497536ed884b4d18860f6db644d4143412c2f5.tar.bz2
scala-fc497536ed884b4d18860f6db644d4143412c2f5.zip
- bug fix: cloneSymbol in ClassSymbol correctly...
- bug fix: cloneSymbol in ClassSymbol correctly sets thisSym for the new symbol
-rw-r--r--sources/scalac/symtab/Symbol.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java
index f7b4f65a00..2b8145f8fa 100644
--- a/sources/scalac/symtab/Symbol.java
+++ b/sources/scalac/symtab/Symbol.java
@@ -1143,7 +1143,7 @@ public class ClassSymbol extends TypeSymbol {
other.constructor.setInfo(constructor.info());
other.mangled = mangled;
other.module = module;
- other.thisSym = thisSym;
+ if (thisSym != this) other.setTypeOfThis(typeOfThis());
return other;
}