Skip to content

Commit

Permalink
Update docs/_docs/reference/experimental/cc.md
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky authored Aug 13, 2023
1 parent 7b1e960 commit f95b82c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_docs/reference/experimental/cc.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class Logger(using FileSystem):
def log(s: String): Unit = ???

def test(using fs: FileSystem) =
val l: {fs} Logger = Logger()
val l: Logger^{fs} = Logger()
...
```
In this version, `FileSystem` is a capability class, which means that the `{cap}` capture set is implied on the parameters of `Logger` and `test`. Writing the capture set explicitly produces a warning:
Expand Down

0 comments on commit f95b82c

Please sign in to comment.