Bug 320319 (MONO77541) - [GMCS] Bug related to generics / inheritance
Summary: [GMCS] Bug related to generics / inheritance
Status: RESOLVED FIXED
Alias: MONO77541
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Major
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-13 17:28 UTC by Patrick Ulbrich
Modified: 2007-09-15 21: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 19:48:06 UTC


---- Reported by flipper98@gmx.net 2006-02-13 10:28:38 MST ----

Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:

gmcs 1.1.13 is unable to compile the following code:

Steps to reproduce the problem:

using System;

public class Class1<T>
    where T : MyType
{

    public void MethodOfClass1(T mt)
    {            
        mt.MethodOfMyBaseType();
    }

}

public class MyType : MyBaseType
{
    public override void MethodOfMyBaseType()
    {            
    }
}

public abstract class MyBaseType
{
    public abstract void MethodOfMyBaseType();
}

}


Actual Results:
error CS1501: No overload for method `MethodOfMyBaseType' takes `0' arguments

Expected Results:
compilation succeeded

How often does this happen? 
always

Additional Information:



---- Additional Comments From martin@ximian.com 2006-03-16 12:38:04 MST ----

Fixed in SVN.


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>fedora core 4</cf_op_sys_details>
Unknown operating system other. Setting to default OS "Other".