10 static void Foo2 (int a
, ref int b
)
12 Console
.WriteLine (a
);
13 Console
.WriteLine (b
);
16 throw new ApplicationException ();
21 static void Test
<T
> (T
[] t
)
23 Foo (b
: ref t
[1], a
: t
[0]);
26 static void Foo
<T
> (T a
, ref T b
)
31 public static int Main ()
33 var a
= new S
[] { new S (), new S (), new S () }
;
35 Foo2 (b
: ref a
[i
].Foo
, a
: a
[++i
].Foo
++);
37 Console
.WriteLine (a
[0].Foo
);
38 Console
.WriteLine (a
[1].Foo
);
39 Console
.WriteLine (a
[2].Foo
);
50 var array
= new [] { 3, 4 }
;