[Issue 9531] __traits(parent, ...) does not work for types defined within a unittest block

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 18 09:34:14 PST 2013


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


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

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


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at 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: -------


More information about the Digitalmars-d-bugs mailing list