2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / tests / gtest-515.cs
blobaae5311fc241b8f43bf02b7d25a69ef3d8549356
1 using System;
3 interface I<T>
7 class A
9 public virtual I<T> Foo<T> () where T : IDisposable
11 return null;
15 class AA : A
17 public override I<V> Foo<V> ()
19 return base.Foo<V> ();
23 class B : AA, IDisposable
25 public void Dispose ()
29 public override I<R> Foo<R> ()
31 return base.Foo<R> ();
34 public static void Main ()
36 new B ().Foo<B> ();