Talk:Covariant return type
Latest comment: 10 years ago by 67.201.57.5 in topic The facts have changed since the introduction of generics in C#.
![]() | This article is rated Start-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||
|
Error
editI think this is wrong: the overriding return type must be a sub-type of the original type, not any related type, or usually subtype. Always a subtype. That's why it is called covariant. Or am I mistaken? Jirka6 (talk) 13:31, 28 November 2007 (UTC)
The facts have changed since the introduction of generics in C#.
editThis article shall be updated for consistency with this other article: Covariance and contravariance_(computer science)#Generic types