You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/neg-custom-args/captures/i21401.scala
+1-1
Original file line number
Diff line number
Diff line change
@@ -15,5 +15,5 @@ def test2() =
15
15
vala= usingIO[IO^](x => x) // error: The expression's type IO^ is not allowed to capture the root capability `cap`
16
16
valleaked: [R, X<:Boxed[IO^] ->R] -> (op: X) ->R= usingIO[Res](mkRes) // error: The expression's type Res is not allowed to capture the root capability `cap` in its part box IO^
0 commit comments