[Issue 23933] auto return type disables DIP1000 scope check
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 24 13:35:04 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23933
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> ---
Under the current specification this is not a bug, even though the behavior is
surprising. Attributes are inferred for auto functions because you a function
body needs to be present. Attributes are not inferred for non-auto functions,
even if the body is present.
--
More information about the Digitalmars-d-bugs
mailing list