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
Don't improve according to VAR rule for reach-caps
We used to improve c.x if type Box[T^{cs}] to c.x*. But this risks getting a follow-on
error that a usage leaks into an enclosing method. For instance, if we have
def foo(c: Box[T^{io}]) =
println(c.x)
we want to leave the capset of `c.x` as `{io}` instead of improving to `c.x*`
and running into an error later.
0 commit comments