2010-05-27 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / errors / gcs1503-2.cs
1 // CS1503: Argument `#2' cannot convert `method group' expression to type `System.Collections.Generic.Comparer<int>'
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 }