Align eglib vcxproj with makefile.
[mono.git] / mcs / tests / gtest-219.cs
1 using System;
2 using System.Reflection;
3
4 public interface IFoo : ICloneable {}
5
6 public class Test
7 {
8         public void Foo<T> () where T : IFoo {}
9
10         public static int Main ()
11         {
12                 MethodInfo mi = typeof (Test).GetMethod ("Foo");
13                 Type t = mi.GetGenericArguments () [0];
14                 Type[] ifaces = t.GetGenericParameterConstraints ();
15                 if (ifaces.Length != 1)
16                         return 1;
17                 if (ifaces [0] != typeof (IFoo))
18                         return 2;
19                 return 0;
20         }
21 }
22