underscoreio/essential-scala

Covariance (C.4.25)

Closed this issue · 1 comments

C.4.25 Solution to: Sum Part 2

sealed trait Sum[+A, +B] { ...

Do we really need covariance here Sum[+A, +B]?
Covariance was not explained yet and it may be confusing to reader.

Agreed. I've removed the annotations.