/mcs/tests/gtest-287.cs
C# | 22 lines | 16 code | 6 blank | 0 comment | 0 complexity | 5cc35149de088c9f2553ebe4a337d2b7 MD5 | raw file
Possible License(s): Unlicense, Apache-2.0, LGPL-2.0, MPL-2.0-no-copyleft-exception, CC-BY-SA-3.0, GPL-2.0
- 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 () {}
- }