Flush (work in progress)
[mono.git] / mcs / errors / gcs0411-7.cs
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
3
4 using System;
5 using System.Collections.Generic;
6
7 public class C
8 {
9         static void Foo<T>(T t, Comparer<T> tc)
10         {
11         }
12         
13         static int Compare (int a, int b)
14         {
15                 return -1;
16         }
17         
18         public static void Main ()
19         {
20                 Foo (1, Compare);
21         }
22 }