Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-312.cs
1 using System.Collections.Generic;
2
3 class CantCastGenericListToArray
4 {
5         public static void Main(string[] args)
6         {
7                 IList<string> list = new string[] { "foo", "bar" };
8                 string[] array = (string[])list;
9                 if (list.Count != array.Length)
10                 {
11                         throw new System.ApplicationException();
12                 }
13         }
14 }