Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed Aug 2, 2023
1 parent 79fb362 commit 9504f3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/src/dotty/tools/dotc/core/Definitions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1154,11 +1154,11 @@ class Definitions {
}
}

/** An extractor for context function types `As ?=> B`, possibly with
* dependent refinements. Optionally returns a triple consisting of the argument
* types `As`, the result type `B` and a whether the type is an erased context function.
*/
object NonDependentContextFunctionOf:
/** Matches a (possibly aliased) `ContextFunctionN[...]` or refined `PolyFunction`.
* Extracts the list of function argument types and the result type.
* It only matches a `PolyFunction` if the function type is not result dependent.
*/
def unapply(tp: Type)(using Context): Option[(List[Type], Type)] =
tp match
case NonDependentFunctionOf(argTypes, resultType, true) => Some((argTypes, resultType))
Expand Down

0 comments on commit 9504f3c

Please sign in to comment.