Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / tests / gtest-287.cs
1 using System;
2 using System.Collections.Generic;
3
4 interface I {
5         void D ();
6 }
7
8 class X : I
9 {
10         public static void Main ()
11         {
12                 List<object> l = new List<object> ();
13                 List<I> i = new List<I> ();
14
15                 i.Add (new X());
16
17                 l.AddRange (i.ToArray());
18         }
19
20         public void D () {}
21 }
22