[Mono-bugs] [Bug 42286][Wis] New - missing compiler error cs0188
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Sat, 3 May 2003 07:16:37 -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 japj@darius.demon.nl.
http://bugzilla.ximian.com/show_bug.cgi?id=42286
--- shadow/42286 Sat May 3 07:16:37 2003
+++ shadow/42286.tmp.25417 Sat May 3 07:16:37 2003
@@ -0,0 +1,39 @@
+Bug#: 42286
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: japj@darius.demon.nl
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: missing compiler error cs0188
+
+Compiler Error CS0188 is missing from mcs
+
+"The this object cannot be used before all of its fields are assigned to"
+
+"All fields in a struct have to be assigned by a constructor before the
+constructor can call a method in the struct"
+
+The following sample generates CS0188:
+
+// CS0188.cs
+using System;
+using System.Runtime.InteropServices;
+
+[StructLayout(LayoutKind.Sequential)]
+public struct GdkEvent {
+ public int type;
+
+ public GdkEvent(int aHandle) {
+ Console.WriteLine("{0}", this);
+ }
+}