Skip to content

Commit 2bfafe5

Browse files
committed
Revert "Polish and document separation checker (2)"
This reverts commit d684f60. # Conflicts: # compiler/src/dotty/tools/dotc/cc/SepCheck.scala
1 parent fd1f3e7 commit 2bfafe5

File tree

3 files changed

+35
-209
lines changed

3 files changed

+35
-209
lines changed

compiler/src/dotty/tools/dotc/cc/CheckCaptures.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,7 @@ class CheckCaptures extends Recheck, SymTransformer:
18391839
end checker
18401840

18411841
checker.traverse(unit)(using ctx.withOwner(defn.RootClass))
1842-
if ccConfig.useSepChecks then SepCheck(this).traverse(unit)
1842+
if ccConfig.useSepChecks then SepChecker(this).traverse(unit)
18431843
if !ctx.reporter.errorsReported then
18441844
// We dont report errors here if previous errors were reported, because other
18451845
// errors often result in bad applied types, but flagging these bad types gives

compiler/src/dotty/tools/dotc/cc/Fresh.scala

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ object Fresh:
6767
case _ => None
6868
end Cap
6969

70-
/** Map each occurrence of cap to a different Sep.Cap instance */
7170
class FromCap(owner: Symbol)(using Context) extends BiTypeMap, FollowAliasesMap:
7271
thisMap =>
7372

0 commit comments

Comments
 (0)