File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2857,14 +2857,19 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
28572857 tp
28582858 case tp : HKTypeLambda =>
28592859 tp
2860+ case tp : ParamRef =>
2861+ val st = tp.superTypeNormalized
2862+ if st.exists then
2863+ disjointnessBoundary(st)
2864+ else
2865+ // workaround for when ParamRef#underlying returns NoType
2866+ defn.AnyType
28602867 case tp : TypeProxy =>
28612868 disjointnessBoundary(tp.superTypeNormalized)
28622869 case tp : WildcardType =>
28632870 disjointnessBoundary(tp.effectiveBounds.hi)
28642871 case tp : ErrorType =>
28652872 defn.AnyType
2866- case NoType => // ParamRef#superTypeNormalized can return NoType
2867- defn.AnyType
28682873 end disjointnessBoundary
28692874
28702875 (disjointnessBoundary(tp1), disjointnessBoundary(tp2)) match
You can’t perform that action at this time.
0 commit comments