```
enum A;
enum B;
static if (is(typeof(& func) Fsym : Fsym*)) {
static if (is(Fsym P == function)) {
static assert(__traits(getAttributes, P[0 .. 1]).length == 1);
static assert(is(__traits(getAttributes, P[0 .. 1])[0] == A));
}
}
@A
void func(@B int) {}
```
The first parameter appears to have both @A and @B applied to it. I would only expect @B.
Note that the second assert will fail until issue #21251 is fixed.
Comment #1 by robert.schadek — 2024-12-13T19:11:34Z