}
}
-struct StructWithUserConstructor
-{
- public StructWithUserConstructor ()
- {
-
- }
-}
-
class MemberAccessData
{
public bool BoolValue;
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;
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 ()