[Mono-bugs] [Bug 75337][Nor] New - [GMCS] Ugly warning.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jun 21 00:22:39 EDT 2005
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=75337
--- shadow/75337 2005-06-21 00:22:39.000000000 -0400
+++ shadow/75337.tmp.26244 2005-06-21 00:22:39.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 75337
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: miguel at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [GMCS] Ugly warning.
+
+Hello,
+
+ The following test case shows an ugly warning, the code for generics
+should specialize the method for reporting this error and provide something
+more meaningful:
+
+class LinkedList<T> {
+ public T value;
+ public LinkedList<T> next;
+
+ public LinkedList (T value, LinkedList<T> next)
+ {
+ this.value = value;
+ this.next = next;
+ }
+
+ public LinkedList (T value)
+ {
+ this.next = null;
+ this.value = value;
+ }
+}
+
+class X {
+ static void Main ()
+ {
+ LinkedList<object> x = new LinkedList<string> ("Hello");
+ }
+}
More information about the mono-bugs
mailing list