Author: martin
Date: 2006-01-18 12:07:03 -0500 (Wed, 18 Jan 2006)
New Revision: 55737
Added:
trunk/mcs/tests/gtest-240.cs
Modified:
trunk/mcs/gmcs/ChangeLog
trunk/mcs/gmcs/class.cs
Log:
2006-01-18 Martin Baulig <[EMAIL PROTECTED]>
* class.cs (TypeContainer.AddToMemberContainer): Use
`symbol.MemberName.MethodName' instead of just `symbol.Name';
fixes #77124.
Modified: trunk/mcs/gmcs/ChangeLog
===================================================================
--- trunk/mcs/gmcs/ChangeLog 2006-01-18 16:38:12 UTC (rev 55736)
+++ trunk/mcs/gmcs/ChangeLog 2006-01-18 17:07:03 UTC (rev 55737)
@@ -1,5 +1,11 @@
2006-01-18 Martin Baulig <[EMAIL PROTECTED]>
+ * class.cs (TypeContainer.AddToMemberContainer): Use
+ `symbol.MemberName.MethodName' instead of just `symbol.Name';
+ fixes #77124.
+
+2006-01-18 Martin Baulig <[EMAIL PROTECTED]>
+
Fix #76417: a generic class may now have methods which may unify
for some type parameter substitutions.
Modified: trunk/mcs/gmcs/class.cs
===================================================================
--- trunk/mcs/gmcs/class.cs 2006-01-18 16:38:12 UTC (rev 55736)
+++ trunk/mcs/gmcs/class.cs 2006-01-18 17:07:03 UTC (rev 55737)
@@ -486,7 +486,7 @@
public bool AddToMemberContainer (MemberCore symbol)
{
- return AddToContainer (symbol, symbol.Name);
+ return AddToContainer (symbol,
symbol.MemberName.MethodName);
}
protected virtual bool AddToTypeContainer (DeclSpace ds)
Added: trunk/mcs/tests/gtest-240.cs
===================================================================
--- trunk/mcs/tests/gtest-240.cs 2006-01-18 16:38:12 UTC (rev 55736)
+++ trunk/mcs/tests/gtest-240.cs 2006-01-18 17:07:03 UTC (rev 55737)
@@ -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 ()
+ { }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches