[Mono-bugs] [Bug 77934][Nor] New - [GMCS] Can't convert from int[] to IList<int>when calling method defined in nested class

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Mar 27 17:10:48 EST 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 vargaz at gmail.com.

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

--- shadow/77934	2006-03-27 17:10:48.000000000 -0500
+++ shadow/77934.tmp.888	2006-03-27 17:10:48.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 77934
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: vargaz at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] Can't convert from int[] to IList<int>when calling method defined in nested class
+
+Testcase:
+
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+using System;
+using System.Collections.Generic;
+
+class Tests {
+
+	public static int Main () {
+		int[] x = new int[] {100, 200};
+
+		GenericClass<int>.Z (x, 0);
+
+		return 0;
+	}
+
+	class GenericClass <T> {
+		public static T Z (IList<T> x, int index)
+		{
+			return x [index];
+		}
+	}
+}
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+
+csc compiles this just fine.


More information about the mono-bugs mailing list