2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-etree-20.cs
blob58d471209d4b606e429e1208e42d12f185473aa4
1 using System;
2 using System.Linq.Expressions;
4 struct S
6 public static int Main ()
8 Expression<Func<S?, A>> e = a => a;
10 // TODO: implement
11 // Console.WriteLine (e.Compile ()(null));
13 Console.WriteLine (e.Compile ()(new S ()));
15 Expression<Func<S?, B>> e2 = a => (B) a;
17 // TODO: implement
18 // Console.WriteLine (e2.Compile ()(null));
20 Console.WriteLine (e2.Compile ()(new S ()));
22 return 0;
26 class A
28 public static implicit operator A (S x)
30 return new B ();
34 class B : A