@@ -1849,8 +1849,6 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
1849
1849
|| symInfo.isInstanceOf [MethodType ]
1850
1850
&& symInfo.signature.consistentParams(info2.signature)
1851
1851
1852
- def tp1IsSingleton : Boolean = tp1.isInstanceOf [SingletonType ]
1853
-
1854
1852
// A relaxed version of isSubType, which compares method types
1855
1853
// under the standard arrow rule which is contravarient in the parameter types,
1856
1854
// but under the condition that signatures might have to match (see sigsOK)
@@ -1865,8 +1863,8 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
1865
1863
matchingMethodParams(info1, info2, precise = false )
1866
1864
&& isSubInfo(info1.resultType, info2.resultType.subst(info2, info1), symInfo1.resultType)
1867
1865
&& sigsOK(symInfo1, info2)
1868
- case _ => inFrozenGadtIf(tp1IsSingleton) { isSubType(info1, info2) }
1869
- case _ => inFrozenGadtIf(tp1IsSingleton) { isSubType(info1, info2) }
1866
+ case _ => inFrozenGadt { isSubType(info1, info2) }
1867
+ case _ => inFrozenGadt { isSubType(info1, info2) }
1870
1868
1871
1869
val info1 = m.info.widenExpr
1872
1870
isSubInfo(info1, tp2.refinedInfo.widenExpr, m.symbol.info.orElse(info1))
0 commit comments