Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / tests / gtest-551.cs
1 using System;
2
3 class Base<T> where T : new ()
4 {
5         protected readonly T field = new T ();
6 }
7
8 class Derived<T> : Base<T> where T : ICloneable, new ()
9 {
10         public Derived()
11         {
12                 field.Clone();
13         }
14 }
15
16 class C : ICloneable
17 {
18         public object Clone ()
19         {
20                 return null;
21         }
22         
23         public static void Main ()
24         {
25                 var a = new Derived<C> ();
26         }
27 }