www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22871] New: Aliases to `__traits(parameters)` causes unknown


          Issue ID: 22871
           Summary: Aliases to `__traits(parameters)` causes unknown error
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org


int makeAlias(int a, bool b)
    alias Params = __traits(parameters);
    assert(Params[0] == 3);
    assert(Params[1] == true);
    return 1;

Error: unknown, please file report on issues.dlang.org

Mar 11 2022