Author: martin
Date: 2005-07-01 14:19:56 -0400 (Fri, 01 Jul 2005)
New Revision: 46845
Added:
trunk/mcs/tests/gtest-182.cs
Log:
New test.
Added: trunk/mcs/tests/gtest-182.cs
===================================================================
--- trunk/mcs/tests/gtest-182.cs 2005-07-01 18:19:34 UTC (rev 46844)
+++ trunk/mcs/tests/gtest-182.cs 2005-07-01 18:19:56 UTC (rev 46845)
@@ -0,0 +1,23 @@
+interface IMember {
+ int GetId ();
+}
+
+interface IMethod : IMember { }
+
+class C1 : IMethod
+{
+ public int GetId () { return 42; }
+}
+
+class X {
+ static void foo<a> (a e )
+ where a : IMember
+ {
+ e.GetId ();
+ }
+
+ public static void Main ()
+ {
+ foo<IMethod> (new C1 ());
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches