[Mono-bugs] [Bug 80898][Wis] New - [GMCS] compilation failure with internal fields in generic classes
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Feb 19 11:46:39 EST 2007
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 miguel at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80898
--- shadow/80898 2007-02-19 11:46:38.000000000 -0500
+++ shadow/80898.tmp.5598 2007-02-19 11:46:38.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 80898
+Product: Mono: Compilers
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: miguel at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [GMCS] compilation failure with internal fields in generic classes
+
+The following program fails to compile with gmcs, but it should:
+
+using System;
+
+ public class Bar<U> where U : EventArgs
+ {
+ internal void OnWorldDestroyed ()
+ {
+ }
+ }
+
+ public class Baz<U> where U : Bar<EventArgs>
+ {
+ public void DestroyWorld (U bar)
+ {
+ bar.OnWorldDestroyed ();
+ }
+ }
+
+ public class Bling
+ {
+ public static void Main ()
+ {
+ }
+ }
More information about the mono-bugs
mailing list