[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.


--- 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 Details: 
+Status: NEW   
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: japj@darius.demon.nl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+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;
+public struct GdkEvent {
+    public int type;
+    public GdkEvent(int aHandle) {
+        Console.WriteLine("{0}", this);
+    }