[Mono-bugs] [Bug 59188][Maj] New - Error in IL codes

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 27 May 2004 11:19: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 meddochat@zonnet.nl.

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

--- shadow/59188	2004-05-27 11:19:37.000000000 -0400
+++ shadow/59188.tmp.29020	2004-05-27 11:19:37.000000000 -0400
@@ -0,0 +1,56 @@
+Bug#: 59188
+Product: Mono: Runtime
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: meddochat@zonnet.nl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Error in IL codes
+
+Description of Problem:
+  When executing the included source i get the following error:
+  ** ERROR **: Invalid IL code at IL0006 in Proef:Main (): IL_0006: ldarg.0
+
+source file:
+
+--- BEGIN SOURCE FILE ---
+using System;
+
+public class Proef
+{
+	private EventHandler _OnDoSomething = null;
+
+	public event EventHandler OnDoSomething
+	{
+		add
+		{
+			_OnDoSomething += value;
+		}
+		remove
+		{
+			_OnDoSomething -= value;
+		}
+	}
+
+	static void Temp(object s, EventArgs e)
+	{
+	}
+
+	public static void Main()
+	{
+		Proef temp = new Proef();
+		temp.OnDoSomething += new EventHandler(Temp);
+	}
+}
+--- END SOURCE FILE ---
+
+compile this and i hope you get the same error as i did.