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
16 | val leaked: [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^
8
+
| ^^^^^^^^^^^^^^^^^^^
9
+
| The expression's type Res is not allowed to capture the root capability `cap` in its part box IO^.
10
+
| This usually means that a capability persists longer than its allowed lifetime.
vala= usingIO[IO^](x => x) // error: The expression's type IO^ is not allowed to capture the root capability `cap`
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