We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8d418a commit 04dba38Copy full SHA for 04dba38
compiler/src/dotty/tools/dotc/cc/CaptureSet.scala
@@ -1073,7 +1073,7 @@ object CaptureSet:
1073
case parent: SingletonCaptureRef if parent.isTrackableRef =>
1074
tp.singletonCaptureSet
1075
case _ =>
1076
- CaptureSet.ofTypeDeeply(parent)
+ CaptureSet.ofTypeDeeply(parent.widen)
1077
case tpd @ defn.RefinedFunctionOf(rinfo: MethodType) if followResult =>
1078
ofType(tpd.parent, followResult = false) // pick up capture set from parent type
1079
++ (recur(rinfo.resType) // add capture set of result
0 commit comments