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 instance if bound is subtype of Singleton
This was the situation before the PR. I thought that simply checking whether
the instance is a subtype of the bound is equivalent, but compare-singletons.scala
shows that this is not the case. Here, we have a type variable X such that
`r.type <:< X <:< Singleton` where `r: R` and `R <: Singleton`. With the
previous changes in this PR, we instantiate `X` to `R`. With the revert
in this commit we instantiate it to `r.type` instead.
0 commit comments