File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2052,14 +2052,13 @@ object Types {
2052
2052
2053
2053
def captureSetOfInfo (using Context ): CaptureSet =
2054
2054
if ctx.runId == myCaptureSetRunId then myCaptureSet
2055
- else if (myCaptureSet eq CaptureSet .Pending )
2056
- || ctx.phase != Phases .checkCapturesPhase then CaptureSet .empty
2055
+ else if myCaptureSet eq CaptureSet .Pending then CaptureSet .empty
2057
2056
else
2058
2057
myCaptureSet = CaptureSet .Pending
2059
2058
val computed =
2060
2059
if isRootCapability then singletonCaptureSet
2061
2060
else CaptureSet .ofType(underlying)
2062
- if underlying.isProvisional then
2061
+ if ctx.phase != Phases .checkCapturesPhase || underlying.isProvisional then
2063
2062
myCaptureSet = null
2064
2063
else
2065
2064
myCaptureSet = computed
You can’t perform that action at this time.
0 commit comments