[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / tests / gtest-223.cs
blob817f6531e22a45efe53ec63c44d08613ff1bdbb6
1 // Bug #76551
2 using System;
3 using System.Reflection;
5 public abstract class Foo<T> where T : class
9 public class Test
11 public Foo<K> Hoge<K> () where K : class { return null; }
13 public static void Main ()
15 MethodInfo mi = typeof (Test).GetMethod ("Hoge");
16 foreach (Type t in mi.GetGenericArguments ())
17 if ((t.GenericParameterAttributes & GenericParameterAttributes.ReferenceTypeConstraint) == 0)
18 throw new Exception ();