Skip to content

Commit 9334f29

Browse files
committed
Polish and comment Setup class
1 parent b5787df commit 9334f29

File tree

3 files changed

+160
-80
lines changed

3 files changed

+160
-80
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ extension (sym: Symbol)
592592
&& !defn.isPolymorphicAfterErasure(sym)
593593
&& !defn.isTypeTestOrCast(sym)
594594

595+
/** It's a parameter accessor that is not annotated @constructorOnly or @uncheckedCaptures */
595596
def isRefiningParamAccessor(using Context): Boolean =
596597
sym.is(ParamAccessor)
597598
&& {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ object Existential:
337337
if needsWrap then wrapped else tp
338338
end mapCap
339339

340+
/** Map `cap` in function results to fresh existentials */
340341
def mapCapInResults(fail: Message => Unit)(using Context): TypeMap = new:
341342

342343
def mapFunOrMethod(tp: Type, args: List[Type], res: Type): Type =

0 commit comments

Comments
 (0)