[Issue 20867] class subtyping doen't work in separate files
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 6 16:59:34 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=20867
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |nick at geany.org
Resolution|--- |WONTFIX
--- Comment #2 from Nick Treleaven <nick at geany.org> ---
> private T[] elements;
> public: alias elements this;
You can't public alias a private symbol by design. You could make a property
function as a workaround:
public @property _get() => elements;
alias _get this;
See also Issue 9809.
--
More information about the Digitalmars-d-bugs
mailing list