Skip to content

Commit 9504f3c

Browse files
committed
Update docs
1 parent 79fb362 commit 9504f3c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,11 +1154,11 @@ class Definitions {
11541154
}
11551155
}
11561156

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

0 commit comments

Comments
 (0)