Skip to content

Commit f3c59cc

Browse files
committed
Polish and document separation checker.
1 parent b0628d1 commit f3c59cc

File tree

3 files changed

+210
-32
lines changed

3 files changed

+210
-32
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 SepChecker(this).traverse(unit)
1842+
if ccConfig.useSepChecks then SepCheck(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,6 +67,7 @@ object Fresh:
6767
case _ => None
6868
end Cap
6969

70+
/** Map each occurrence of cap to a different Sep.Cap instance */
7071
class FromCap(owner: Symbol)(using Context) extends BiTypeMap, FollowAliasesMap:
7172
thisMap =>
7273

0 commit comments

Comments
 (0)