Merge pull request #1861 from saper/home-override
[mono-project.git] / mcs / tests / gtest-514.cs
bloba078ac053671f070a5e9c778f39e4eb15af4e372
1 using System;
3 namespace test2
5 public class Test<T, U, V>
6 where T : U, new ()
7 where U : V, new ()
8 where V : IDisposable, new ()
11 public void Method ()
13 IDisposable t = new T ();
14 IDisposable u = new U ();
15 IDisposable v = new V ();
19 class MainClass : IDisposable
21 public void Dispose ()
25 public static void Main ()
27 new Test<MainClass, MainClass, MainClass> ().Method ();