summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-10-10 17:25:35 +0000
committerpaltherr <paltherr@epfl.ch>2003-10-10 17:25:35 +0000
commit094b1778ceeefe68e2a6ca0d756e388a4086bc5e (patch)
treee1602b3c1e16ed3bffb56b6a7746f987e96f0065
parent9e75e356d90ed068ae01291e7970747925a4e77a (diff)
downloadscala-094b1778ceeefe68e2a6ca0d756e388a4086bc5e.tar.gz
scala-094b1778ceeefe68e2a6ca0d756e388a4086bc5e.tar.bz2
scala-094b1778ceeefe68e2a6ca0d756e388a4086bc5e.zip
- Added temporary hack for stable symbols
-rw-r--r--sources/scalac/ast/TreeGen.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scalac/ast/TreeGen.java b/sources/scalac/ast/TreeGen.java
index f8fe7bd488..aa435b21b4 100644
--- a/sources/scalac/ast/TreeGen.java
+++ b/sources/scalac/ast/TreeGen.java
@@ -298,7 +298,7 @@ public class TreeGen implements Kinds, Modifiers, TypeTags {
sym.flags |= ACCESSED;
Ident tree = make.Ident(pos, sym);
global.nextPhase();
- if (sym.isStable())
+ if (sym.isStable() && global.currentPhase.id <= global.PHASE.UNCURRY.id()) // !!! tmp hack
tree.setType(Type.singleType(sym.owner().thisType(), sym));
else
tree.setType(sym.type());
@@ -315,7 +315,7 @@ public class TreeGen implements Kinds, Modifiers, TypeTags {
sym.flags |= ACCESSED | SELECTOR;
Select tree = make.Select(pos, sym, qual);
global.nextPhase();
- if (sym.isStable() && qual.type.isStable())
+ if (sym.isStable() && qual.type.isStable() && global.currentPhase.id <= global.PHASE.UNCURRY.id()) // !!! tmp hack
tree.setType(Type.singleType(qual.type, sym));
else
tree.setType(qual.type.memberType(sym));