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 3cc4837 commit bfb716fCopy full SHA for bfb716f
compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala
@@ -116,7 +116,7 @@ object PatternMatcher {
116
/** Widen type as far as necessary so that it does not refer to a pattern-
117
* generated variable.
118
*/
119
- private def sanitize(tp: Type): Type = tp.widenTermRefExpr match {
+ private def sanitize(tp: Type): Type = tp.widenIfUnstable match {
120
case tp: TermRef if refersToInternal(false, tp) => sanitize(tp.underlying)
121
case tp => tp
122
}
0 commit comments