www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11468] New: `typeid` returns unqualified type info for qualified class instance

https://d.puremagic.com/issues/show_bug.cgi?id=11468

           Summary: `typeid` returns unqualified type info for qualified
                    class instance
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg gmail.com> 2013-11-07
19:42:00 MSK ---
E.g. `typeid(new const Object)` returns `typeid(Object)`:
---
void main()
{
    assert(typeid(new const Object) is typeid(const Object)); // fails
}
---

This was part of Issue 4741.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 07 2013