Author: marek
Date: 2007-12-27 05:42:46 -0500 (Thu, 27 Dec 2007)
New Revision: 91928

Added:
   trunk/mcs/tests/test-604.cs
Log:
2007-12-27  Marek Safar  <[EMAIL PROTECTED]>

        A test for bug #343465



Added: trunk/mcs/tests/test-604.cs
===================================================================
--- trunk/mcs/tests/test-604.cs 2007-12-27 10:42:06 UTC (rev 91927)
+++ trunk/mcs/tests/test-604.cs 2007-12-27 10:42:46 UTC (rev 91928)
@@ -0,0 +1,34 @@
+using System;
+using System.Reflection;
+
+class Program {
+       interface Iface1 {
+               void IfaceMethod1 ();
+       }
+
+       interface Iface2 {
+               void IfaceMethod2 ();
+       }
+
+       public class ImplementingExplicitInterfacesMembers : Iface1, Iface2 {
+               void Iface1.IfaceMethod1 ()
+               {
+               }
+
+               void Iface2.IfaceMethod2 ()
+               {
+               }
+       }
+
+       static int Main ()
+       {
+               object[] o = typeof 
(ImplementingExplicitInterfacesMembers).GetMethods (BindingFlags.NonPublic | 
BindingFlags.Instance);
+               foreach (MethodInfo mi in o) {
+                       if (mi.Name.IndexOf ('+') != -1)
+                               return 1;
+                       Console.WriteLine (mi.Name);
+               }
+               
+               return 0;
+       }
+}

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to