Skip to content

Commit 6593929

Browse files
authored
doc(context-functions): remove TODO syntax works
1 parent 4c3e707 commit 6593929

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

docs/docs/reference/contextual/context-functions.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,10 @@ For example, continuing with the previous definitions,
4343

4444
g(f(2)) // is expanded to g((using ev: ExecutionContext) => f(2)(using ev))
4545

46-
g(ExecutionContext ?=> f(22)) // is left as it is
46+
g(ExecutionContext ?=> f(3)) // is expanded to g((using ev: ExecutionContext) => f(3)(using ev))
47+
g((using ctx: ExecutionContext) => f(22)(using ctx)) // is left as it is
4748
```
4849

49-
<!--
50-
51-
TODO the previous proposed syntax does not compile:
52-
g((using ctx: ExecutionContext) => f(22)(using ctx)) // is left as it is
53-
results in `not a legal formal parameter`
54-
55-
-->
56-
5750
### Example: Builder Pattern
5851

5952
Context function types have considerable expressive power. For

0 commit comments

Comments
 (0)