10 static void Foo2 (int a
, ref int b
)
12 Console
.WriteLine (a
);
13 Console
.WriteLine (b
);
16 throw new ApplicationException ();
21 public static int Main ()
23 var a
= new S
[] { new S (), new S (), new S () }
;
25 Foo2 (b
: ref a
[i
].Foo
, a
: a
[++i
].Foo
++);
27 Console
.WriteLine (a
[0].Foo
);
28 Console
.WriteLine (a
[1].Foo
);
29 Console
.WriteLine (a
[2].Foo
);