2010-04-13 Sebastien Pouliot <sebastien@ximian.com>
[mono-project.git] / mcs / tests / gtest-327.cs
blobe7c8196d049661059367ac775d769a8c10b3e628
1 interface ITest
3 void Test ();
6 class Tester<T> where T : ITest, new ()
8 public void Do ()
10 new T ().Test ();
14 class Reference : ITest
16 public void Test ()
21 struct Value : ITest
23 public void Test ()
28 class C
30 static void Main ()
32 new Tester<Reference> ().Do ();
33 new Tester<Value> ().Do ();