[Issue 23915] Instance method properties not evaluated when passed to template value argument
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 16 11:38:26 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23915
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |razvan.nitu1305 at gmail.com
--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
This doesn't seem to have anything to do with property. This yields the same
result:
```
template T(bool value) {}
bool getValue() { return true; }
alias Inst1 = T!(getValue); // OK
struct S2 { static bool getValue() { return true; } }
alias Inst2 = T!(S2.getValue); // OK
struct S3 { bool getValue() { return true; } }
alias Inst = T!(S3().getValue); // Error
```
--
More information about the Digitalmars-d-bugs
mailing list