[System.Data] Try to fix random DataViewTest.DefaultColumnNameAddListChangedTest...
[mono-project.git] / mcs / tests / gtest-etree-29.cs
blob37de0bd7e540f18d2884b0dddfb6bcb7b15eb1fa
1 using System.Linq.Expressions;
2 using System;
4 class C
6 public static int Main ()
8 Expression<Func<bool, IA>> e = (arg) => arg ? new B2 () : (IA) new B1 ();
9 var cond = (ConditionalExpression) e.Body;
10 if (cond.NodeType != ExpressionType.Conditional)
11 return 1;
12 if (cond.IfTrue.NodeType != ExpressionType.Convert)
13 return 2;
14 if (cond.IfFalse.NodeType != ExpressionType.Convert)
15 return 3;
17 e.Compile () (true);
18 return 0;
22 interface IA
26 class B2 : IA
30 class B1 : IA