X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Fgtest-etree-01.cs;h=785407e3ac92e892ded9187ef2948a8caba13bfd;hb=100bd760a46811121b4b47ebba941d4fb98486ab;hp=43f605e6b5bac62c5cb503e695ce634e447b34f9;hpb=605c8771b8b7f52204d12640c29dc24bbd0c2ea2;p=mono.git diff --git a/mcs/tests/gtest-etree-01.cs b/mcs/tests/gtest-etree-01.cs index 43f605e6b5b..785407e3ac9 100644 --- a/mcs/tests/gtest-etree-01.cs +++ b/mcs/tests/gtest-etree-01.cs @@ -210,14 +210,6 @@ struct MyTypeImplicitOnly } } -struct StructWithUserConstructor -{ - public StructWithUserConstructor () - { - - } -} - class MemberAccessData { public bool BoolValue; @@ -730,6 +722,13 @@ class Tester e9.Compile ().Invoke (1); } + void CallTest_10 () + { + Expression> e = () => $"{int.MaxValue}"; + AssertNodeType (e, ExpressionType.Call); + Assert (int.MaxValue.ToString (), e.Compile ().Invoke ()); + } + void CoalesceTest () { Expression> e = (uint? a) => a ?? 99; @@ -2203,10 +2202,6 @@ class Tester Expression> e = () => new DateTime (); AssertNodeType (e, ExpressionType.New); Assert (null, ((NewExpression)e.Body).Constructor, "default ctor"); - - Expression> e2 = () => new StructWithUserConstructor (); - AssertNodeType (e2, ExpressionType.New); - Assert ("Void .ctor()", ((NewExpression)e2.Body).Constructor.ToString (), "user ctor"); } void NotTest ()