summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sources/scalac/symtab/Symbol.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java
index e7b6b2530b..6e4cf0d874 100644
--- a/sources/scalac/symtab/Symbol.java
+++ b/sources/scalac/symtab/Symbol.java
@@ -801,7 +801,12 @@ public abstract class Symbol implements Modifiers, Kinds {
/** Get info at start of given phase
*/
protected final Type infoAt(Phase phase) {
- return initialize().rawInfoAt(phase);
+ Global global = phase.global;
+ Phase current = global.currentPhase;
+ global.currentPhase = phase;
+ Type info = info();
+ global.currentPhase = current;
+ return info;
}
/** Get info at start of current phase, without forcing lazy types.