Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2007-12-27 13:42:46 +0300
committerMarek Safar <marek.safar@gmail.com>2007-12-27 13:42:46 +0300
commitfb23964c8a352bde8a4e2b35b9a685ef2070bb17 (patch)
treebd84551392cbe4680a335f4c6f510820105d88cb /mcs/tests/test-604.cs
parent1366c4cc89019f3ed7266dbd18ff42967d6161f4 (diff)
2007-12-27 Marek Safar <marek.safar@gmail.com>
A test for bug #343465 svn path=/trunk/mcs/; revision=91928
Diffstat (limited to 'mcs/tests/test-604.cs')
-rw-r--r--mcs/tests/test-604.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/mcs/tests/test-604.cs b/mcs/tests/test-604.cs
new file mode 100644
index 00000000000..1d3b01a3802
--- /dev/null
+++ b/mcs/tests/test-604.cs
@@ -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;
+ }
+}