[Mono-bugs] [Bug 77139][Nor] Changed - Inconsistences when declaring anonymous methods to delegates.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jan 2 20:01:58 EST 2006


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 kornelpal at hotmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=77139

--- shadow/77139	2006-01-02 19:03:46.000000000 -0500
+++ shadow/77139.tmp.7009	2006-01-02 20:01:58.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 77139
 Product: Mono: Compilers
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: Debian Unstable (packages version 1.1.12.1-1)
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: C#
 AssignedTo: rharinath at novell.com                            
 ReportedBy: felipe.lessa at gmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -86,6 +86,20 @@
                         myEvent -= callOnce2;
                 };
                 myEvent += callOnce2;
         }
 }
 ////////////////////////////////////////////
+
+------- Additional Comments From kornelpal at hotmail.com  2006-01-02 20:01 -------
+I tried MS csc.exe and got the following result:
+
+bug.cs(10,36): error CS0165: Use of unassigned local 
+variable 'callOnce1'
+bug.cs(18,36): error CS0165: Use of unassigned local 
+variable 'callOnce2'
+
+The following code compiles however:
+...
+EventHandler callOnce1 = null;
+callOnce1 = delegate {
+...


More information about the mono-bugs mailing list