Contravariant type parameter

ID: contravariant-type-parameter

A parameter position for which implies . In Scala, it is annotated -. A consumer capable of accepting every broad-type value can safely serve a context that supplies only narrower values. Returning a value of that parameter type would generally break this guarantee.

New to topics? Read the docs here!