May 27, 2020 [Issue 20867] class subtyping doen't work in separate files | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20867 --- Comment #1 from mw <mingwu@gmail.com> --- Created attachment 1792 --> https://issues.dlang.org/attachment.cgi?id=1792&action=edit class subtyping doen't work in separate files Two files: queue.d t.d -- | ||||
September 06, 2022 [Issue 20867] class subtyping doen't work in separate files | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20867 Nick Treleaven <nick@geany.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |nick@geany.org Resolution|--- |WONTFIX --- Comment #2 from Nick Treleaven <nick@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. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply