2 using System
.Collections
.Generic
;
10 public class TestClass
12 public static int Main ()
14 Foo
[][] array
= new Foo
[][] { new Foo[0] }
;
15 IEnumerable
<object> aa1
= array
;
16 foreach (var x
in aa1
) Console
.WriteLine (x
);
17 aa1
.GetEnumerator ().ToString ();
19 int[] array2
= new int[10];
20 IEnumerable
<uint> aa2
= (uint[])(object)array2
;
21 foreach (var x
in aa2
) Console
.WriteLine (x
);
22 aa2
.GetEnumerator ().ToString ();
24 // The next line will crash
25 List
<object> list
= array
.Cast
<object>().Select((arg
) => arg
).ToList();