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

--- Comment #3 from Mathias LANG <[email protected]> ---
Right, because it's `stringof`. Just tested and it also trigggers with
`__traits(identifier)`.

A workaround for this issue would be to use the following:
```
static assert(__traits(identifier, typeof(B.init.a()).p) == "p");
```
Which works as expected.

--

Reply via email to