blob: 24fa1e666287f119b75f68289a6930c32858f410 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// CS1503: Argument `#2' cannot convert `method group' expression to type `System.Collections.Generic.Comparer<int>'
// Line: 20
using System;
using System.Collections.Generic;
public class C
{
static void Foo<T>(T t, Comparer<T> tc)
{
}
static int Compare (int a, int b)
{
return -1;
}
public static void Main ()
{
Foo (1, Compare);
}
}
|