[Mono-bugs] [Bug 643890] DeclaringType returns incorrect value for inflated types

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 6 07:34:16 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=643890

https://bugzilla.novell.com/show_bug.cgi?id=643890#c5


Marek Safar <msafar at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #5 from Marek Safar <msafar at novell.com> 2010-10-06 11:34:16 UTC ---
Found another case which is still failing

using System;



public class MemberClass<T>

{

    public class NestedMemberClass<U>

    {

    }

}



public class Test

{

    public static void Main ()

    {

        var mc = new MemberClass<string>.NestedMemberClass<int> ();

        Console.WriteLine (mc.GetType().DeclaringType);

    }

}



Mono prints
MemberClass`1[System.String]

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list