Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by [EMAIL PROTECTED]

http://bugzilla.ximian.com/show_bug.cgi?id=75636

--- shadow/75636        2006-01-06 08:15:09.000000000 -0500
+++ shadow/75636.tmp.1431       2006-01-06 08:20:21.000000000 -0500
@@ -231,6 +231,40 @@
 
 ------- Additional Comments From [EMAIL PROTECTED]  2006-01-04 14:07 -------
 Raising the priority to Major, ikvm is an important showcase.
 
 ------- Additional Comments From [EMAIL PROTECTED]  2006-01-06 08:15 -------
 -> Runtime/System.Reflection
+
+------- Additional Comments From [EMAIL PROTECTED]  2006-01-06 08:20 -------
+The following simple testcase
+
+----8<----
+using System;
+using System.Reflection;
+
+class Test {
+       static void Main ()
+       {
+                       MethodInfo m0 = Assembly.LoadFrom 
("bug75636lib.dll").GetType
+("Bar").GetMethod ("clone", Type.EmptyTypes);
+               MethodInfo m1 = m0.GetBaseDefinition ();
+               MethodInfo m2 = m1.GetBaseDefinition ();
+               Console.WriteLine (m0.DeclaringType);
+               Console.WriteLine (m1.DeclaringType);
+               Console.WriteLine (m2.DeclaringType);
+        }
+}
+----8<----
+
+prints:
+
+Bar
+Foo
+Foo
+
+Where, it should print
+
+Bar
+Bar
+Bar
+
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to