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 7e695fd commit dd88672Copy full SHA for dd88672
compiler/src/dotty/tools/dotc/cc/CaptureSet.scala
@@ -546,7 +546,7 @@ object CaptureSet:
546
else CompareResult.fail(this)
547
}
548
.andAlso {
549
- if (origin ne source) && mapIsIdempotent then
+ if (origin ne source) && (origin ne initial) && mapIsIdempotent then
550
// `tm` is idempotent, propagate back elems from image set.
551
// This is sound, since we know that for `r in newElems: tm(r) = r`, hence
552
// `r` is _one_ possible solution in `source` that would make an `r` appear in this set.
0 commit comments