/mcs/tests/gtest-287.cs
https://bitbucket.org/danipen/mono · C# · 22 lines · 16 code · 6 blank · 0 comment · 0 complexity · 5cc35149de088c9f2553ebe4a337d2b7 MD5 · raw file
- using System;
- using System.Collections.Generic;
- interface I {
- void D ();
- }
- class X : I
- {
- public static void Main ()
- {
- List<object> l = new List<object> ();
- List<I> i = new List<I> ();
- i.Add (new X());
- l.AddRange (i.ToArray());
- }
- public void D () {}
- }