https://bugzilla.novell.com/show_bug.cgi?id=353526
Summary: [GMCS] Generic inference and params keyword
Product: Mono: Compilers
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
SVN r92772.
public class Test {
public static T[] InsertAt<T>(T[] array, int index, params T[] items) {
return array; /* Implementation omitted */
}
public static void Main() {
int[] x = new int[] {1, 2};
int[] y = new int[] {3, 4};
x = InsertAt(x, 0, y);
}
}
test.cs(8,13): error CS0411: The type arguments for method
`Test.InsertAt<T>(T[], int, params T[])' cannot be inferred from the usage. Try
specifying the type arguments explicitly
Affects IronRuby SVN r71.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs