February 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9531

           Summary: __traits(parent, ...) does not work for types defined
                    within a unittest block
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: code@benjamin-thaut.de


--- Comment #0 from Benjamin Thaut <code@benjamin-thaut.de> 2013-02-18 02:53:55 PST ---
Created an attachment (id=1190)
repro case

Tested with dmd 2.062
See attatched repro case.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9531


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |andrej.mitrovich@gmail.com
         AssignedTo|nobody@puremagic.com        |andrej.mitrovich@gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-18 09:34:11 PST ---
Simple test-case:

module Fix9531;
unittest
{
    struct S { }
    enum s = __traits(parent, S).stringof;
    static assert(s == "module Fix9531");
}
void main() { }

https://github.com/D-Programming-Language/dmd/pull/1677

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9531



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-19 12:03:41 PST ---
(In reply to comment #1)
> https://github.com/D-Programming-Language/dmd/pull/1677

Wrong pull.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 13, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9531



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-05-13 06:40:57 PDT ---
Strange, this seems to have been fixed in git-head. Anyone know which pull did it?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 13, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9531


Benjamin Thaut <code@benjamin-thaut.de> changed:

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


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home