[2020-02] Avoid following invalid pointers in mono_w32process_get_modules on Darwin...
[mono-project.git] / mono / tests / generic-array-iface-set.2.cs
blob3bcee183f56c72a55f905a3efdf69589bbd4f6db
1 using System;
2 using System.Collections.Generic;
4 class A {
5 static int Main ()
7 A [] aa = new A [1];
8 IList<object> io = aa;
9 try {
10 io [0] = new object ();
11 A a = aa [0];
12 Console.WriteLine ("{0}", a.GetType ());
13 } catch (ArrayTypeMismatchException) {
14 return 0;
16 return 1;