2010-05-19 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / gcs0411-7.cs
blobc22648e5d8efb907364df1c0f6845b0516ef4fc2
1 // CS0411: The type arguments for method `C.Foo<T>(T, System.Collections.Generic.Comparer<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
2 // Line: 20
4 using System;
5 using System.Collections.Generic;
7 public class C
9 static void Foo<T>(T t, Comparer<T> tc)
13 static int Compare (int a, int b)
15 return -1;
18 public static void Main ()
20 Foo (1, Compare);