We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62b7732 commit 4202b98Copy full SHA for 4202b98
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -207,7 +207,7 @@ object Types {
207
*/
208
private final def phantomLatticeType(implicit ctx: Context): Type = widen match {
209
case tp: ClassInfo if defn.isPhantomTerminalClass(tp.classSymbol) => tp.prefix
210
- case tp: TypeProxy if tp.underlying ne this => tp.underlying.phantomLatticeType
+ case tp: TypeProxy if tp.superType ne this => tp.underlying.phantomLatticeType
211
case tp: AndOrType => tp.tp1.phantomLatticeType
212
case _ => NoType
213
}
0 commit comments