Content deleted Content added
Giving an example of a language that supports contravariance in parameter types |
|||
Line 168:
</syntaxhighlight>
However, [[Sather]] supported both covariance and contravariance. Calling convention for overridden methods are covariant with ''out'' parameters and return values, and contravariant with normal parameters (with the mode ''in'').
|