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
It seems that the compiler doesn’t completely compute the type resulting from calling product(unit, unit). It shows Foo[Unit, Unit]#Out instead of taking into account the fact that the actual implicit parameter foo had fixed the type Out to Unit.
Expectation
The same code compiles with Scala 2. Is it possible to make it compile with Scala 3 as well?
Uh oh!
There was an error while loading. Please reload this page.
(Sorry for the very vague name… I couldn’t figure out what is really specific to this issue)
Minimized code
Output
It seems that the compiler doesn’t completely compute the type resulting from calling
product(unit, unit)
. It showsFoo[Unit, Unit]#Out
instead of taking into account the fact that the actual implicit parameterfoo
had fixed the typeOut
toUnit
.Expectation
The same code compiles with Scala 2. Is it possible to make it compile with Scala 3 as well?
Workarounds
product
to use an additional type parameter instead of using a path-dependent type:The text was updated successfully, but these errors were encountered: