[Mono-bugs] [Bug 68326][Cri] New - Generic constraint semantics is different than in microsoft.net
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 14 Oct 2004 09:24:57 -0400 (EDT)
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 rudi@lambda-computing.com.
http://bugzilla.ximian.com/show_bug.cgi?id=68326
--- shadow/68326 2004-10-14 09:24:57.000000000 -0400
+++ shadow/68326.tmp.27564 2004-10-14 09:24:57.000000000 -0400
@@ -0,0 +1,24 @@
+Bug#: 68326
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity: Unknown
+Priority: Critical
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: rudi@lambda-computing.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Generic constraint semantics is different than in microsoft.net
+
+In the C# whidbey beta, structs automatically satisfy the new() generic
+constraint even if they do not have an empty constructor. This makes
+sense since structs always have an empty constructor automatically
+generated that sets all fields to its default value.
+
+In mono this is not the case.