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
{{ message }}
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.
In order to get SFlux's element types right for proper inheritance the element type should be declared covariant as it's usually done for container- or collection types in scala. See e.g. immutable.List:
sealed abstract class List[+A]
Currently SFlux's element type is declared invariant:
trait SFlux[T]
Which lets the following code fail for SFlux but not for List:
@jpork The reason it is using invariant is because it relies on the underlying Java reactor library. As we know Java generic type is invariant.
If you know any easy way to make it compatible with scala invariant, feel free to suggest
In order to get SFlux's element types right for proper inheritance the element type should be declared covariant as it's usually done for container- or collection types in scala. See e.g. immutable.List:
sealed abstract class List[+A]
Currently SFlux's element type is declared invariant:
trait SFlux[T]
Which lets the following code fail for SFlux but not for List:
The text was updated successfully, but these errors were encountered: