From: Marek Safar Date: Tue, 24 Feb 2009 16:58:37 +0000 (-0000) Subject: New test. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=40e7740221a5ef63898998f6683aa665220e9f0c;p=mono.git New test. svn path=/trunk/mcs/; revision=127868 --- diff --git a/mcs/tests/gtest-etree-18.cs b/mcs/tests/gtest-etree-18.cs new file mode 100644 index 00000000000..502618f4e30 --- /dev/null +++ b/mcs/tests/gtest-etree-18.cs @@ -0,0 +1,26 @@ +using System; +using System.Linq.Expressions; + +public class FooBase { } +public class Foo : FooBase { } + +public interface IHelper +{ + void DoIt (FooBase foo); +} + +public class Program +{ + static int Main () + { + Expression> e = (helper => helper.DoIt (new Foo ())); + var mce = e.Body as MethodCallExpression; + var et = mce.Arguments[0].NodeType; + + Console.WriteLine (et); + if (et != ExpressionType.New) + return 1; + + return 0; + } +} diff --git a/mcs/tests/ver-il-gmcs.xml b/mcs/tests/ver-il-gmcs.xml index 66cf2af3ddf..cd2601772e4 100644 --- a/mcs/tests/ver-il-gmcs.xml +++ b/mcs/tests/ver-il-gmcs.xml @@ -14692,10 +14692,10 @@ 97 - 178 + 163 - 116 + 101 166 @@ -14782,7 +14782,7 @@ 113 - 342 + 312 115 @@ -15929,6 +15929,26 @@ + + + + 7 + + + + + 7 + + + + + 7 + + + 140 + + +