File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
compiler/test/dotty/tools/dotc/sbt Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,11 @@ final class ProgressCallbackTest extends DottyTest:
9797 locally :
9898 // (4) assert that the final progress recorded is at the target phase,
9999 // and progress is equal to the number of phases before the target.
100- val (befores, target +: next +: _) = runnableSubPhases.span(_ != targetPhase): @ unchecked
100+ //
101+ // (4.1) extract the real befores by looking at the runnable phases
102+ val (befores, target +: _) = runnableSubPhases.span(_ != targetPhase): @ unchecked
103+ // (4.2) extract the predicted next phase by looking at all phases
104+ val (_, `target` +: next +: _) = allSubPhases.span(_ != targetPhase): @ unchecked
101105 // (4.1) we expect cancellation to occur *as we enter* the target phase,
102106 // so no units should be visited in this phase. Therefore progress
103107 // should be equal to the number of phases before the target. (as we have 1 unit)
You can’t perform that action at this time.
0 commit comments