[Issue 21288] Wrong context pointer for alias this function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 2 19:38:50 UTC 2020


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

--- Comment #3 from Mathias LANG <pro.mathias.lang at gmail.com> ---
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.

--


More information about the Digitalmars-d-bugs mailing list