Do not remap framework assembly if it's version is higher than the runtime version
[mono.git] / mcs / tests / gtest-etree-01.cs
index 43f605e6b5bac62c5cb503e695ce634e447b34f9..785407e3ac92e892ded9187ef2948a8caba13bfd 100644 (file)
@@ -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<Func<string>> e = () => $"{int.MaxValue}";
+               AssertNodeType (e, ExpressionType.Call);
+               Assert (int.MaxValue.ToString (), e.Compile ().Invoke ());
+       }
+
        void CoalesceTest ()
        {
                Expression<Func<uint?, uint>> e = (uint? a) => a ?? 99;
@@ -2203,10 +2202,6 @@ class Tester
                Expression<Func<DateTime>> e = () => new DateTime ();
                AssertNodeType (e, ExpressionType.New);
                Assert (null, ((NewExpression)e.Body).Constructor, "default ctor");
-
-               Expression<Func<StructWithUserConstructor>> e2 = () => new StructWithUserConstructor ();
-               AssertNodeType (e2, ExpressionType.New);
-               Assert ("Void .ctor()", ((NewExpression)e2.Body).Constructor.ToString (), "user ctor");
        }
 
        void NotTest ()