Skip to content

Commit

Permalink
Polish and comment Setup class
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Nov 12, 2024
1 parent e3c91f3 commit 34972d8
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 81 deletions.
1 change: 1 addition & 0 deletions compiler/src/dotty/tools/dotc/cc/CaptureOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ extension (sym: Symbol)
&& !defn.isPolymorphicAfterErasure(sym)
&& !defn.isTypeTestOrCast(sym)

/** It's a parameter accessor that is not annotated @constructorOnly or @uncheckedCaptures */
def isRefiningParamAccessor(using Context): Boolean =
sym.is(ParamAccessor)
&& {
Expand Down
1 change: 1 addition & 0 deletions compiler/src/dotty/tools/dotc/cc/Existential.scala
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ object Existential:
if needsWrap then wrapped else tp
end mapCap

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

def mapFunOrMethod(tp: Type, args: List[Type], res: Type): Type =
Expand Down
Loading

0 comments on commit 34972d8

Please sign in to comment.