Bugzilla – Bug 320685
[GMCS] Can't convert from int[] to IList<int>when calling method defined in nested class
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by vargaz@gmail.com 2006-03-27 17:10:47 MST ---- 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. ---- Additional Comments From martin@ximian.com 2006-06-21 09:58:39 MST ---- Works for me; added gtest-276.cs. Unknown operating system unknown. Setting to default OS "Other".