We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8255c24 commit 076d5a7Copy full SHA for 076d5a7
tests/neg-custom-args/captures/lazyvals.scala
@@ -13,6 +13,7 @@ class Console extends SharedCapability:
13
14
val fun: () ->{console} String = () => x() // ok
15
val fun2: () -> String = () => x() // error
16
+ val fun3: () ->{x} String = () => x() // error but should be ok
17
18
println("Before accessing x")
19
println(s"x = ${x()}")
0 commit comments