Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / generic-array-iface-set.2.cs
1 using System;
2 using System.Collections.Generic;
3
4 class A {
5   static int Main ()
6   {
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;
15     }
16     return 1;
17     
18   }
19 }