[Issue 20167] Issue warning when result discarded from strong pure function?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 18 11:12:29 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=20167
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |WORKSFORME
--- Comment #4 from RazvanN <razvan.nitu1305 at gmail.com> ---
> I did this same test, but I didn't have `nothrow`.
Why wasn't `nothrow` inferred for this trivial function where the source is as
plain as day to the compiler?
We have been discussing about this for a long time, but I don't know if
attribute inference is going to be a thing for normal functions. That could be
filed as a different issue.
However, this bug report, as Dennis pointed out has nothing actionable.
--
More information about the Digitalmars-d-bugs
mailing list