We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
class
key
1 parent 82ad71b commit 415525dCopy full SHA for 415525d
docs/docs/reference/dependent-function-types.md
@@ -6,7 +6,7 @@ title: "Dependent Function Types"
6
A dependent function type describes functions where the result type may depend
7
on the function's parameter values. Example:
8
9
- class Entry { type Key; val key: Key }
+ trait Entry { type Key; val key: Key }
10
11
def extractKey(e: Entry): e.Key = e.key // a dependent method
12
val extractor: (e: Entry) => e.Key = extractKey // a dependent function value
0 commit comments