blob: 292602101e387ac5dbc6a5c001362c0a5c266566 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
using System.Linq.Expressions;
delegate int D1 ();
delegate long D2 ();
class C
{
static int Foo (D1 d)
{
return 1;
}
static int Foo (D2 d)
{
return 2;
}
static int FooE (Expression<D1> d)
{
return 1;
}
static int FooE (Expression<D2> d)
{
return 2;
}
public static int Main ()
{
if (Foo (delegate () { return 1; }) != 1)
return 1;
FooE (() => 1);
return 0;
}
}
|