[netcore] Implement/fix enum/nullable comparers.
[mono-project.git] / mono / tests / bug-3903.cs
blobad3a00ddbe4ad6b813096e44ea1eb671b1946e93
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
5 struct Foo
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();
26 return 0;