http://d.puremagic.com/issues/show_bug.cgi?id=11010

           Summary: typeid doesn't work on a member of an instance.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: pyc...@qq.com


--- Comment #0 from Zhouxuan <pyc...@qq.com> 2013-09-11 03:49:44 PDT ---
import std.stdio;

struct A
{
    A* p;
}

int main()
{
    A a;
    writeln(typeid(a.p)); // Error: need 'this' for 'p' of type 'A*'
    return 0;
}

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

Reply via email to