Merge pull request #3563 from lewurm/interpreter
[mono.git] / mcs / tests / test-anon-122.cs
1 using System.Linq.Expressions;
2
3 delegate int D1 ();
4 delegate long D2 ();
5
6 class C
7 {
8         static int Foo (D1 d)
9         {
10                 return 1;
11         }
12         
13         static int Foo (D2 d)
14         {
15                 return 2;
16         }
17
18         static int FooE (Expression<D1> d)
19         {
20                 return 1;
21         }
22         
23         static int FooE (Expression<D2> d)
24         {
25                 return 2;
26         }
27         
28         public static int Main ()
29         {
30                 if (Foo (delegate () { return 1; }) != 1)
31                         return 1;
32
33                 FooE (() => 1);
34                 
35                 return 0;
36         }
37 }