[mcs] Pending implementation of accessors cannot hide base implementation with differ...
[mono.git] / mcs / tests / test-604.cs
1 using System;
2 using System.Reflection;
3
4 class Program {
5         interface Iface1 {
6                 void IfaceMethod1 ();
7         }
8
9         interface Iface2 {
10                 void IfaceMethod2 ();
11         }
12
13         public class ImplementingExplicitInterfacesMembers : Iface1, Iface2 {
14                 void Iface1.IfaceMethod1 ()
15                 {
16                 }
17
18                 void Iface2.IfaceMethod2 ()
19                 {
20                 }
21         }
22
23         public static int Main ()
24         {
25                 object[] o = typeof (ImplementingExplicitInterfacesMembers).GetMethods (BindingFlags.NonPublic | BindingFlags.Instance);
26                 foreach (MethodInfo mi in o) {
27                         if (mi.Name.IndexOf ('+') != -1)
28                                 return 1;
29                         Console.WriteLine (mi.Name);
30                 }
31                 
32                 return 0;
33         }
34 }