[Issue 18624] New: getSymbolsByUDA produces wrong result if one of the symbols having the UDA is a function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 17 13:14:39 UTC 2018


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

          Issue ID: 18624
           Summary: getSymbolsByUDA produces wrong result if one of the
                    symbols having the UDA is a function
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: spoov0.707 at gmail.com

The code

"""
enum Attr;
struct A
{
    @Attr void a();
    @Attr void a(int n);
          void b();
    @Attr void c();
}

static assert(getSymbolsByUDA!(A, Attr).stringof == "tuple(a, a, c)");
"""

fails

--


More information about the Digitalmars-d-bugs mailing list