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 acbab4b commit 152225dCopy full SHA for 152225d
tests/neg-custom-args/captures/stack-alloc.scala
@@ -14,4 +14,5 @@ def withFreshPooled[T](op: ({*} Pooled) => T): T =
14
ret
15
16
def test() =
17
- withFreshPooled(pooled => () => pooled.toString ) // error
+ val pooledClosure = withFreshPooled(pooled => () => pooled.toString) // error
18
+ pooledClosure()
0 commit comments