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: [email protected]
          Reporter: [email protected]

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.

--

Reply via email to