We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee23094 commit a9d5168Copy full SHA for a9d5168
_overviews/scala3-macros/tutorial/inline.md
@@ -404,7 +404,8 @@ Let us assume a call to `logged` on a concrete instance of `PrintLogger`:
404
```scala
405
logged(new PrintLogger, "🥧")
406
// inlined as
407
-val logger: PrintLogger = new PrintLogger
+val logger = new PrintLogger
408
+val x = "🥧"
409
logger.log(x)
410
```
411
After inlining, the call to `log` is de-virtualized and known to be on `PrintLogger`.
0 commit comments