https://issues.dlang.org/show_bug.cgi?id=20867
Nick Treleaven <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |WONTFIX --- Comment #2 from Nick Treleaven <[email protected]> --- > 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. --
