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 ab1d64d commit 4d6d72dCopy full SHA for 4d6d72d
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -2530,7 +2530,9 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
2530
}.apply(true, tp)
2531
2532
(tp1.dealias, tp2.dealias) match {
2533
- case (tp1: TypeRef, tp2: TypeRef) if tp1.symbol == defn.SingletonClass || tp2.symbol == defn.SingletonClass =>
+ case (tp1: TypeRef, _) if tp1.symbol == defn.SingletonClass =>
2534
+ false
2535
+ case (_, tp2: TypeRef) if tp2.symbol == defn.SingletonClass =>
2536
false
2537
case (tp1: ConstantType, tp2: ConstantType) =>
2538
tp1 != tp2
0 commit comments