Bug 320685 (MONO77934) - [GMCS] Can't convert from int[] to IList<int>when calling method defined in nested class
Summary: [GMCS] Can't convert from int[] to IList<int>when calling method defined in n...
Status: RESOLVED FIXED
Alias: MONO77934
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Raja R Harinath
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-28 00:10 UTC by Forgotten User vxPDddArjq
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:53:16 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".