Bug 17495 – __traits(getParameterStorageClasses) doesn't work with tuples as parameters
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-06-12T04:38:00Z
Last change time
2017-08-07T13:16:44Z
Assigned to
nobody
Creator
bugzilla
Comments
Comment #0 by bugzilla — 2017-06-12T04:38:10Z
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