[Mono-bugs] [Bug 79145][Maj] New - GMCS fails to compile this program.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 22 18:31:44 EDT 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 miguel at ximian.com.


--- shadow/79145	2006-08-22 18:31:44.000000000 -0400
+++ shadow/79145.tmp.4583	2006-08-22 18:31:44.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 79145
+Product: Mono: Compilers
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: C#
+AssignedTo: martin at ximian.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: GMCS fails to compile this program.
+The following program fails to compile on GMCS:
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Reflection;
+class D {
+    public static void Main ()
+    {
+        List<MemberInfo> a = new List<MemberInfo> (typeof (D).GetMethods ());
+    }
+It reports:
+Program.cs(9,30): error CS1502: The best overloaded method match for
+has some invalid arguments
+Program.cs(9,30): error CS1503: Argument 1: Cannot convert from
+`System.Reflection.MethodInfo[]' to
+While CSC builds it.

More information about the mono-bugs mailing list