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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 5 13:34:43 EDT 2010


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

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


           Summary: DeclaringType returns incorrect value for inflated
                    types
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: rkumpera at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


using System;

class A<T>
{
    public class B<U>
    {
    }
}

class Program
{
    public static void Main ()
    {
        var a = typeof (A<int>.B<string>);
        Console.WriteLine (a.DeclaringType);
    }
}

NET
A`1[T]

Mono
A`1[System.Int32]

-- 
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