[Mono-bugs] [Bug 78006][Wis] New - Partial derived generic class
fails to compile
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Apr 4 00:08:29 EDT 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 yianwillis at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78006
--- shadow/78006 2006-04-04 00:08:29.000000000 -0400
+++ shadow/78006.tmp.4009 2006-04-04 00:08:29.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 78006
+Product: Mono: Compilers
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: yianwillis at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Partial derived generic class fails to compile
+
+Description of Problem:
+gmcs with mono 1.1.13.4. When a generic class is a drived class of another
+generic class using the same generic type and the derived class itself is
+partial, an error CS0246 is reported while it should not.
+
+Steps to reproduce the problem:
+
+public class Base<T> {
+ public virtual void func() {}
+}
+
+public partial class Derived<T>: Base<T> {
+ public override void func() {}
+}
+
+Actual Results:
+test.cs(5,39): error CS0246: The type or namespace name `T' could not be
+found. Are you missing a using directive or an assembly reference?
+
+Expected Results:
+no error.
+
+How often does this happen?
+Always
+
+Additional Information:
+When either the partial keyword is removed or the base class is not
+generic, no error occurs.
More information about the mono-bugs
mailing list