We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22be802 commit b7ce616Copy full SHA for b7ce616
compiler/src/dotty/tools/dotc/core/GadtConstraint.scala
@@ -83,7 +83,7 @@ class GadtConstraint private (
83
// B$2 had info <: B$1 and fullBounds <: B$1
84
// We can use the info of B$2 to drop the lower-bound of B$1
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
+ if tp.symbol.isPatternBound && !tp.info.hiBound.isExactlyAny && self <:< tp.info.hiBound => acc
87
case tp => acc | tp
88
}
89
0 commit comments