[runtime] Fix DISABLE_REFLECTION_EMIT build.
[mono.git] / mcs / tests / gtest-567.cs
1 using System;
2
3 class C
4 {
5         public static void Main ()
6         {
7                 G<C>.Foo ();
8                 G2<C>.Foo ();
9         }
10 }
11
12 class G<T> where T : new ()
13 {
14         public static void Foo ()
15         {
16                 Console.WriteLine ((new T ()).GetType ().ToString ());
17         }
18 }
19
20 class G2<T> where T : class, new ()
21 {
22         public static void Foo ()
23         {
24                 Console.WriteLine ((new T ()).GetType ().ToString ());
25         }
26 }