[Mono-bugs] [Bug 27050][Nor] New - only static delegates are parsed

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
26 Jun 2002 14:59:36 -0000


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 michael@ximian.com.

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

--- shadow/27050	Wed Jun 26 10:59:36 2002
+++ shadow/27050.tmp.19779	Wed Jun 26 10:59:36 2002
@@ -0,0 +1,43 @@
+Bug#: 27050
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: michael@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: only static delegates are parsed
+
+According to:
+
+http://www.csharpfriends.com/Members/Main/Tutorials/get_tutorial.aspx?tutID=16
+
+it appears you can have non-static delegates such as:
+
+using System;
+
+class Foo {
+
+	delegate void DelegateType ();
+
+	void testFoo ()
+	{
+		Console.WriteLine ("Foo!");
+	}
+
+	public static void Main (string[] args)
+	{
+		DelegateType adelegate = new DelegateType (testFoo);
+		adelegate ();
+	}
+}
+
+This doesn't compile with mcs.