www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17495] New: __traits(getParameterStorageClasses) doesn't work


          Issue ID: 17495
           Summary: __traits(getParameterStorageClasses) doesn't work with
                    tuples as parameters
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: bugzilla digitalmars.com

Fails to compile:

  void async(ARGS...)(ARGS) {
    static void compute(ARGS) { }

        auto x = __traits(getParameterStorageClasses, compute, 1);

alias test = async!(int, int);

with a message about '1' being out of range

Jun 11 2017