[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / mcs / tests / test-tuple-02.cs
blobab722642aebd3f407932c57c67420fddf4203f09
1 using System;
3 class TupleConversions
5 public static void Main ()
7 object oarg = 4;
8 (sbyte v1, long v2) t1 = (-1, 2);
9 var t2 = (-1, 2);
11 IComparable o = (x1: "a", x2: 1.ToString ());
13 var arg = (x1: 1, x2: 1.ToString ());
14 if (arg.x2 != "1")
15 return;
17 Foo ((x1: (oarg, 'v'), x2: 1.ToString ()));
19 Test3 (ValueTuple.Create (1, "2"));
21 (int v1, string v2) y = (1, null);
23 (int v1, Action v2) y2 = (1, Main);
24 (int v1, Action v2) y3 = (ValueTuple<int, Action>) (1, Main);
26 (string v1, object v2) b = ("a", "b");
28 (int v1, long v2)? x = null;
30 var array = new [] {
31 (name: "A", offset: 0),
32 (name: "B", size: 4)
33 };
36 static void Foo<T> (T arg)
40 static void Test3 ((long a, object b) arg)