We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2b805a commit 1df49f1Copy full SHA for 1df49f1
compiler/src/dotty/tools/dotc/cc/CaptureSet.scala
@@ -152,7 +152,8 @@ sealed abstract class CaptureSet extends Showable:
152
&& ctx.property(LooseRootChecking).isDefined
153
154
private def isSuperRootOf(y: CaptureRoot) = x match
155
- case x: CaptureRoot if x.isLocalRootCapability => y.encloses(x)
+ case x: CaptureRoot =>
156
+ x.isGenericRootCapability || x.isLocalRootCapability && y.encloses(x)
157
case _ => false
158
end extension
159
tests/neg-custom-args/captures/unbox.scala renamed to tests/neg-custom-args/captures/unbox.scala.disabled
0 commit comments