[Mono-bugs] [Bug 77541][Maj] New - Bug related to generics / inheritance

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 13 10:28:38 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by flipper98 at gmx.net.

http://bugzilla.ximian.com/show_bug.cgi?id=77541

--- shadow/77541	2006-02-13 10:28:38.000000000 -0500
+++ shadow/77541.tmp.31743	2006-02-13 10:28:38.000000000 -0500
@@ -0,0 +1,64 @@
+Bug#: 77541
+Product: Mono: Compilers
+Version: 1.1
+OS: other
+OS Details: fedora core 4
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: flipper98 at gmx.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Bug related to generics / inheritance
+
+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:


More information about the mono-bugs mailing list