[Microsoft.CSharp] Replaced with CoreFX implementation
[mono.git] / mcs / tests / gtest-246.cs
1 using System;
2
3 namespace TestCase
4 {
5         interface ITest
6         {
7         }
8
9         class CTest : ITest
10         {
11                 public static void Main()
12                 {
13                 }
14
15                 public void Bar()
16                 {
17                 }
18         }
19
20         class CGenericTest<T,V>
21                 where T : ITest
22                 where V : CTest, T, new()       
23         {
24                 public V Foo()
25                 {       
26                         V TestObject = new V();
27                         TestObject.Bar();
28                         return TestObject;
29                 }
30         }
31 }