Bugzilla – Bug 323001
[GMCS] Missing check for overriden member return type
Last modified: 2010-04-27 09:24:00 UTC
---- Reported by marek.safar@seznam.cz 2006-12-18 18:02:50 MST ---- Please fill in this template when reporting a bug, unless you know what you are doing. Description of Problem: Steps to reproduce the problem: 1. A nice sample abstract class A<T> { public abstract T getT(); class B : A<B> { public override B getT() { return default (B); } } } Actual Results: No error Expected Results: ?.cs(7,27): error CS0508: `A<T>.B.getT()': return type must be `A<T>.B' to match overridden member `A<A<T>.B>.getT()' How often does this happen? Additional Information: Unknown operating system unknown. Setting to default OS "Other".
Fixed in trunk.