[Issue 16139] Attributes of functions inside templates should be inferred
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 1 23:53:27 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=16139
Adam D. Ruppe <destructionator at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |destructionator at gmail.com
--- Comment #2 from Adam D. Ruppe <destructionator at gmail.com> ---
I just encountered this while confirming a report on the chat room:
```
template A() {
void foo() { }
auto bar() { }
}
static assert(is(typeof(A!().foo) == typeof(A!().bar)));
```
Fails today due to this issue. Bizarre.
--
More information about the Digitalmars-d-bugs
mailing list