[Microsoft.CSharp] Replaced with CoreFX implementation
[mono.git] / mcs / tests / gtest-etree-18.cs
1 using System;
2 using System.Linq.Expressions;
3
4 public class FooBase { }
5 public class Foo : FooBase { }
6
7 public interface IHelper
8 {
9         void DoIt (FooBase foo);
10 }
11
12 public class Program
13 {
14         public static int Main ()
15         {
16                 Expression<Action<IHelper>> e = (helper => helper.DoIt (new Foo ()));
17                 var mce = e.Body as MethodCallExpression;
18                 var et = mce.Arguments[0].NodeType;
19
20                 Console.WriteLine (et);
21                 if (et != ExpressionType.New)
22                         return 1;
23
24                 return 0;
25         }
26 }