a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
23 lines
357 B
C#
23 lines
357 B
C#
// 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);
|
|
}
|
|
}
|