[Issue 20786] do attribute inference for member functions inside nested aggregates
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 5 03:35:01 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20786
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|do attribute inference for |do attribute inference for
|all nested functions |member functions inside
| |nested aggregates
--- Comment #4 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to RazvanN from comment #3)
> It seems dmd does
> attribute inference for nested functions, except if the the function is the
> member of a nested aggregate declaration.
Oh interesting! I just tested that and you are right, I just assumed it would
all be the same. Changing the title appropriately.
It's curious that nested member functions are not inferred (except inside @safe
functions) when straight nested functions are.
--
More information about the Digitalmars-d-bugs
mailing list