[Mono-bugs] [Bug 46923][Nor] Changed - MCS fails on explicit cast to delegate

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sat, 26 Jul 2003 13:41:49 -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 martin@ximian.com.

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

--- shadow/46923	Fri Jul 25 15:40:48 2003
+++ shadow/46923.tmp.15123	Sat Jul 26 13:41:49 2003
@@ -1,14 +1,14 @@
 Bug#: 46923
 Product: Mono/MCS
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: Debian Sid
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: mono@terrarium.f9.co.uk               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -43,7 +43,32 @@
  
 Additional Information:
 
 ------- Additional Comments From mono@terrarium.f9.co.uk  2003-07-25 15:40 -------
 Created an attachment (id=4981)
 Test case illustrating the problem
+
+
+------- Additional Comments From martin@ximian.com  2003-07-26 13:41 -------
+using System;
+
+namespace TheoSpears.TestCases.MCS
+{
+	delegate void MyDelegate ();
+	
+	
+	class CastDelegate
+	{
+		[STAThread]
+		static void Main(string[] args) {
+			object CastDelegate = new MyDelegate(DelegateFunction);
+			((MyDelegate)CastDelegate)();
+			
+		}
+
+		static void DelegateFunction()
+		{
+			Console.WriteLine ( "Delegate Called" );
+		}
+	}
+}