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:
authorMartin Baulig <martin@novell.com>2006-01-18 20:07:03 +0300
committerMartin Baulig <martin@novell.com>2006-01-18 20:07:03 +0300
commit522d101247c1ac20773ecb441401f97b6cb428a6 (patch)
tree44cf3dca11fd84e353c0535c0d76cd16e4b6a5df /mcs/tests/gtest-240.cs
parentdebf6008ff9caa7bf5adbf677713261c3cba7348 (diff)
2006-01-18 Martin Baulig <martin@ximian.com>
* class.cs (TypeContainer.AddToMemberContainer): Use `symbol.MemberName.MethodName' instead of just `symbol.Name'; fixes #77124. svn path=/trunk/mcs/; revision=55737
Diffstat (limited to 'mcs/tests/gtest-240.cs')
-rw-r--r--mcs/tests/gtest-240.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/tests/gtest-240.cs b/mcs/tests/gtest-240.cs
new file mode 100644
index 00000000000..35fd4057f2c
--- /dev/null
+++ b/mcs/tests/gtest-240.cs
@@ -0,0 +1,28 @@
+using System;
+
+interface IMyInterface<T>
+{
+ event EventHandler MyEvent;
+}
+
+public class MyClass: IMyInterface<string>, IMyInterface<int>
+{
+ event EventHandler IMyInterface<string>.MyEvent
+ {
+ add {}
+ remove {}
+ }
+
+ event EventHandler IMyInterface<int>.MyEvent
+ {
+ add {}
+ remove {}
+ }
+
+}
+
+class X
+{
+ static void Main ()
+ { }
+}