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.
1 parent 6bc8d00 commit 97bc111Copy full SHA for 97bc111
docs/docs/reference/contextual/givens.md
@@ -62,9 +62,8 @@ returned for this and all subsequent accesses to `global`. This operation is thr
62
Alias givens can be anonymous as well, e.g.
63
```scala
64
given Position = enclosingTree.position
65
-given (using outer: Context) as Context = outer.withOwner(currentOwner)
+given (using config: Config) as Factory = MemoizingFactory(config)
66
```
67
-<!-- TODO IMO the above example is very bad as the outer Context will always have precedence over the anonymous one. No? -->
68
69
An alias given can have type parameters and context parameters just like any other given,
70
but it can only implement a single type.
0 commit comments