[Mono-bugs] [Bug 58126][Nor] Changed - Can't parse: ((B) new B (A)) (1, 2);

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 29 Aug 2004 16:09:42 -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 bmaurer@users.sf.net.

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

--- shadow/58126	2004-06-23 22:08:20.000000000 -0400
+++ shadow/58126.tmp.14827	2004-08-29 16:09:42.000000000 -0400
@@ -11,13 +11,13 @@
 AssignedTo: martin@ximian.com                            
 ReportedBy: dag_trygve@hotmail.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: Casting to a delegate and passing array parameters
+Summary: Can't parse: ((B) new B (A)) (1, 2);
 
 Please fill in this template when reporting a bug, unless you know what you
 are doing.
 Description of Problem:
 Compiler fails compiling the code below, it compiles fine from Visual
 Studio. Workaround provided in commented code (split line in two).
@@ -62,6 +62,19 @@
 No errors
 
 How often does this happen? 
 Every time
 
 Additional Information:
+
+------- Additional Comments From bmaurer@users.sf.net  2004-08-29 16:09 -------
+Simple test case:
+
+class X {
+	delegate int B (int a, int b);
+	static void A (int a, int b) {}
+	
+	static void Main()
+	{
+		((B) new B (A)) (1, 2);
+	}
+}