[Issue 16412] instance variable shadowing with inheritance
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 10 13:19:56 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=16412
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |INVALID
--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
This is correct code according to the spec:
https://dlang.org/spec/class.html#fields
This is not shadowing. Each class gets its own set and they don't conflict.
--
More information about the Digitalmars-d-bugs
mailing list