Author: ankit
Date: 2006-01-16 08:16:32 -0500 (Mon, 16 Jan 2006)
New Revision: 55630
Added:
trunk/mono/mono/dis/tests/gen-type.cs
Modified:
trunk/mono/mono/dis/ChangeLog
trunk/mono/mono/dis/get.c
trunk/mono/mono/dis/tests/Changelog
Log:
* get.c (get_method_core): Handle a MemberRef with a TypeSpec parent.
Inflate MonoMethod after getting it from mono_get_method_full.
Modified: trunk/mono/mono/dis/ChangeLog
===================================================================
--- trunk/mono/mono/dis/ChangeLog 2006-01-16 11:36:11 UTC (rev 55629)
+++ trunk/mono/mono/dis/ChangeLog 2006-01-16 13:16:32 UTC (rev 55630)
@@ -1,3 +1,8 @@
+2006-01-16 Ankit Jain <[EMAIL PROTECTED]>
+
+ * get.c (get_method_core): Handle a MemberRef with a TypeSpec parent.
+ Inflate MonoMethod after getting it from mono_get_method_full.
+
2006-01-15 Ankit Jain <[EMAIL PROTECTED]>
* get.c (get_method_override): Get full signature of the method.
Modified: trunk/mono/mono/dis/get.c
===================================================================
--- trunk/mono/mono/dis/get.c 2006-01-16 11:36:11 UTC (rev 55629)
+++ trunk/mono/mono/dis/get.c 2006-01-16 13:16:32 UTC (rev 55630)
@@ -1831,6 +1831,7 @@
mh = mono_get_method_full (m, token, NULL, context);
if (mh) {
+ mh = mono_get_inflated_method (mh);
if (mono_method_signature (mh)->is_inflated)
context = ((MonoMethodInflated *) mh)->context;
esname = get_escaped_name (mh->name);
Modified: trunk/mono/mono/dis/tests/Changelog
===================================================================
--- trunk/mono/mono/dis/tests/Changelog 2006-01-16 11:36:11 UTC (rev 55629)
+++ trunk/mono/mono/dis/tests/Changelog 2006-01-16 13:16:32 UTC (rev 55630)
@@ -1,3 +1,8 @@
+2006-01-16 Ankit Jain <[EMAIL PROTECTED]>
+
+ * gen-type.cs: New test case for handling a MemberRef with
+ a TypeSpec parent.
+
2005-11-23 Ankit Jain <[EMAIL PROTECTED]>
* gen-cattr.cs: New test case for custom attributes on
Added: trunk/mono/mono/dis/tests/gen-type.cs
===================================================================
--- trunk/mono/mono/dis/tests/gen-type.cs 2006-01-16 11:36:11 UTC (rev
55629)
+++ trunk/mono/mono/dis/tests/gen-type.cs 2006-01-16 13:16:32 UTC (rev
55630)
@@ -0,0 +1,16 @@
+// Test for a MemberRef with a TypeSpec parent
+
+class g<T>
+{
+ public void foo <A> (A _a)
+ {
+ }
+}
+
+class test {
+ public static void Main ()
+ {
+ g<int> _g = new g<int> ();
+ _g.foo ("abc");
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches