diff options
author | paltherr <paltherr@epfl.ch> | 2003-03-24 16:52:18 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-03-24 16:52:18 +0000 |
commit | bbd53b7ccb91a9063547bb99fea15d4234c5b170 (patch) | |
tree | dc942ff8199316f3de6389927bf640facdc7b6f6 /sources | |
parent | 856b1b4355b0540fc896d9f2729579a96675c2ab (diff) | |
download | scala-bbd53b7ccb91a9063547bb99fea15d4234c5b170.tar.gz scala-bbd53b7ccb91a9063547bb99fea15d4234c5b170.tar.bz2 scala-bbd53b7ccb91a9063547bb99fea15d4234c5b170.zip |
- Fixed method updateInfo
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/symtab/Symbol.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java index 3beeb0b0db..b76b8c2869 100644 --- a/sources/scalac/symtab/Symbol.java +++ b/sources/scalac/symtab/Symbol.java @@ -125,12 +125,10 @@ public abstract class Symbol implements Modifiers, Kinds { public Symbol updateInfo(Type info) { // Global.instance.currentPhase.setInfo(this, info); - if (infos.limit <= Global.instance.currentPhase.id) { - infos = new TypeIntervalList(infos); - infos.limit = Global.instance.currentPhase.id + 1; - } else { - assert infos.limit == Global.instance.currentPhase.id + 1 : this; - } + assert infos.limit <= Global.instance.currentPhase.id + 1 : this; + if (infos.limit > Global.instance.currentPhase.id) infos.limit--; + infos = new TypeIntervalList(infos); + infos.limit = Global.instance.currentPhase.id + 1; infos.info = info; return this; } |