Scala 3 Compiler in the Browser
Loading...
main.js
0%
classpath.bin
0%
import language.experimental.captureChecking trait Logger: def log(msg: String): Unit def usingLogger[R](block: Logger^ => R): R = ??? def main(): Unit = val escaped = usingLogger: l => () => l.log("Hello, world") escaped()
Compile
Output