[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.

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

--- 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: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: martin at ximian.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: GMCS fails to compile this program.
+
+Hello,
+
+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
+`System.Collections.Generic.List<System.Reflection.MemberInfo>.List`1(System.Collections.Generic.IEnumerable<System.Reflection.MemberInfo>)'
+has some invalid arguments
+Program.cs(9,30): error CS1503: Argument 1: Cannot convert from
+`System.Reflection.MethodInfo[]' to
+`System.Collections.Generic.IEnumerable<System.Reflection.MemberInfo>'
+
+While CSC builds it.


More information about the mono-bugs mailing list