New tests.
[mono.git] / mcs / tests / gtest-480.cs
1 using System;
2 using System.Collections.Generic;
3
4 interface I<T> : ICollection<T>, IEnumerable<T>
5 {
6 }
7
8 class C
9 {
10         void Foo ()
11         {
12                 I<object> o = null;
13                 foreach (var v in o)
14                         Console.WriteLine (v);
15         }
16         
17         public static void Main ()
18         {
19                 IList<int> list = new List<int> { 1, 3 };
20                 var g = list.GetEnumerator ();
21         }
22 }