[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / tests / gtest-etree-19.cs
1 using System;
2 using System.Linq.Expressions;
3
4 public class Test
5 {
6         public static int Main ()
7         {
8                 if (Value<int> () != 0)
9                         return 1;
10
11                 var v = Value<Test> ();
12                 return 0;
13         }
14
15         static T Value<T> () where T : new ()
16         {
17                 Expression<Func<T>> e = () => new T ();
18                 var et = e.Body.NodeType;
19                 if (et != ExpressionType.New)
20                         throw new ApplicationException (et.ToString ());
21
22                 return e.Compile ().Invoke ();
23         }
24 }