covariant type Out occurs in contravariant position in type [ErrOut, Out, ErrIn]: (Any => Playground.WIO[Any, Out]) =>
Playground.WIO[Any, Out] of method copy$default$1
Expectation
I believe this is a bug due to the following reason:
The variance error disappears when handleError method is removed.
It compiles in Scala 2.
The error points to the generated copy method
I don't see why it would be a contravariant position
Sorry for the poor issue title, I couldn't think of a better one.
Compiler version
3.3.3
Minimized code
Output
The below output is taken from scastie execution
Expectation
I believe this is a bug due to the following reason:
handleError
method is removed.Sorry for the poor issue title, I couldn't think of a better one.