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
We were too fast skolemizing the argument type as lower bound for a dependent parameter.
We need to do that only if the argument is unstable.
Fixing this revealed another problem in i6882a.scala, where we now got
confused by instantiating a poly type to a polymorphic function type
that contained the same polytype again. We avaoid that now by creating
a fresh copy of the polytype.
Fixesscala#12803
We were too fast skolemizing the argument type as lower bound for a dependent parameter.
We need to do that only if the argument is unstable.
Fixing this revealed another problem in i6882a.scala, where we now got
confused by instantiating a poly type to a polymorphic function type
that contained the same polytype again. We avaoid that now by creating
a fresh copy of the polytype.
Fixesscala#12803
Compiler version
3.0.1-RC1
Minimized code
Output
Expectation
Compile without errors :)
The above compiles fine using 2.13.
With Scala 3, the type parameter needs to be provided explicitly:
run[x.Y](wrap(x))
The text was updated successfully, but these errors were encountered: