File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ class GadtConstraint private (
83
83
// B$2 had info <: B$1 and fullBounds <: B$1
84
84
// We can use the info of B$2 to drop the lower-bound of B$1
85
85
// and return non-bidirectional bounds B$1 <: X and B$2 <: B$1.
86
- if tp.name.is( UniqueName ) && ! tp.info.hiBound.isExactlyAny && self <:< tp.info.hiBound => acc
86
+ if tp.symbol.isPatternBound && ! tp.info.hiBound.isExactlyAny && self <:< tp.info.hiBound => acc
87
87
case tp => acc | tp
88
88
}
89
89
@@ -92,7 +92,7 @@ class GadtConstraint private (
92
92
constraint.minUpper(param).foldLeft(nonParamBounds(param).hi) { (acc, u) =>
93
93
externalize(u) match
94
94
case tp : TypeRef // same as fullLowerBounds
95
- if tp.name.is( UniqueName ) && ! tp.info.loBound.isExactlyNothing && tp.info.loBound <:< self => acc
95
+ if tp.symbol.isPatternBound && ! tp.info.loBound.isExactlyNothing && tp.info.loBound <:< self => acc
96
96
case tp =>
97
97
// Any as the upper bound means "no bound", but if F is higher-kinded,
98
98
// Any & F = F[_]; this is wrong for us so we need to short-circuit
You can’t perform that action at this time.
0 commit comments