Skip to content

Commit 4202b98

Browse files
nicolasstuckiodersky
authored andcommitted
Fix neg/cycles.scala infinite loop on phantomLatticeType.
1 parent 62b7732 commit 4202b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ object Types {
207207
*/
208208
private final def phantomLatticeType(implicit ctx: Context): Type = widen match {
209209
case tp: ClassInfo if defn.isPhantomTerminalClass(tp.classSymbol) => tp.prefix
210-
case tp: TypeProxy if tp.underlying ne this => tp.underlying.phantomLatticeType
210+
case tp: TypeProxy if tp.superType ne this => tp.underlying.phantomLatticeType
211211
case tp: AndOrType => tp.tp1.phantomLatticeType
212212
case _ => NoType
213213
}

0 commit comments

Comments
 (0)