linux-packaging-mono/mcs/tests/test-anon-122.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

38 lines
407 B
C#

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;
}
}