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 widen prefix type if followed by a path selection
- When applying VAR with a prefix path p on a boxed capture set,
replace cap with p* instead of p. This makes it clear that we
need to charge deep capture sets on parameters and avoids
paradoxes like this one:
case class Box[+T](get: T)
val b: Box[C^]
Here, b.get <:< b, but b.get's underlying capture set is {cap} whereas
b's underlying capture set is {}. By using b.get* instead of b.get, we
make sure that we compare against the dcs of `b`, which is also {cap}.
0 commit comments