Skip to content

Commit f95b82c

Browse files
authored
Update docs/_docs/reference/experimental/cc.md
1 parent 7b1e960 commit f95b82c

File tree

1 file changed

+1
-1
lines changed
  • docs/_docs/reference/experimental

1 file changed

+1
-1
lines changed

docs/_docs/reference/experimental/cc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class Logger(using FileSystem):
227227
def log(s: String): Unit = ???
228228

229229
def test(using fs: FileSystem) =
230-
val l: {fs} Logger = Logger()
230+
val l: Logger^{fs} = Logger()
231231
...
232232
```
233233
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:

0 commit comments

Comments
 (0)