enum clot; size_t zlot(string s){ return s.length; } void fnc1() @clot {} void fnc2() @clot @zlot("ok") {} void fnc3() @zlot("abc") {} static assert( hasAttrib!(clot,fnc1) ); static assert( hasAttrib!(clot,fnc2) ); static assert( hasAttrib!(2,fnc2) ); static assert( !hasAttrib!(clot,fnc3) ); static assert( hasAttrib!(3,fnc3) );