Merge pull request #4202 from marek-safar/compression
[mono-project.git] / mcs / tests / gtest-448.cs
blob012549c8afbf755ecc138d83dcccf2110eb61cbe
1 using System;
2 using System.Collections.Generic;
4 interface I<T> : I2<T>, IEnumerable<T>
8 interface I2<T2>
10 void Foo<U> (IEnumerable<U> list) where U : T2;
13 class Impl<T> : I<T>
15 public void Foo<U> (IEnumerable<U> list) where U : T
19 public IEnumerator<T> GetEnumerator ()
21 return null;
24 System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator ()
26 return null;
30 class A<K>
32 public I<K> Value = new Impl<K> ();
35 class Test<TT> : A<TT>
37 public void Foo ()
39 var a = new Test<TT> ();
40 a.Value.Foo (Value);
44 class M
46 public static void Main ()
48 new Test<ulong> ().Foo ();