[Issue 13269] New: Traits hasMember, getMember and compiles get buggy with opDispatch

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Aug 7 13:02:25 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13269

          Issue ID: 13269
           Summary: Traits hasMember, getMember and compiles get buggy
                    with opDispatch
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: czdanol at gmail.com

Hey,
this code returns true:

class Test {

    void opDispatch( string s, Args ... )( auto ref Args args )
        if( false )
    {

    }

}

pragma( msg, __traits( hasMember, Test, "WHATEVEVER_DUDE" ) );

Also, stuff like traits compiles and getMember (but that only in compiles)
behave the same.

--


More information about the Digitalmars-d-bugs mailing list