Bug 323001 (MONO80310) - [GMCS] Missing check for overriden member return type
Summary: [GMCS] Missing check for overriden member return type
Status: RESOLVED FIXED
Alias: MONO80310
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.2
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-19 01:02 UTC by Marek Safar
Modified: 2010-04-27 09:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:20:15 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".

Comment 2 Marek Safar 2010-04-27 09:24:00 UTC
Fixed in trunk.