Skip to content

Commit 152225d

Browse files
olhotakodersky
authored andcommitted
udpate test to match paper
1 parent acbab4b commit 152225d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/neg-custom-args/captures/stack-alloc.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ def withFreshPooled[T](op: ({*} Pooled) => T): T =
1414
ret
1515

1616
def test() =
17-
withFreshPooled(pooled => () => pooled.toString ) // error
17+
val pooledClosure = withFreshPooled(pooled => () => pooled.toString) // error
18+
pooledClosure()

0 commit comments

Comments
 (0)