diff options
-rw-r--r-- | sources/scalac/symtab/Symbol.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java index 2a258dd9f7..03d5cbd6fa 100644 --- a/sources/scalac/symtab/Symbol.java +++ b/sources/scalac/symtab/Symbol.java @@ -895,7 +895,8 @@ public abstract class Symbol implements Modifiers, Kinds { TypeIntervalList infos = this.infos; assert infos != null : this; while (infos.prev != null) infos = infos.prev; - return infos.start; + Phase phase = infos.start; + return phase.prev != null && phase.next != null ? phase.next : phase; } /** Get type at start of current phase. The type of a symbol is: |