Thread overview
[Issue 16412] instance variable shadowing with inheritance
Aug 24, 2016
Ketmar Dark
Nov 10, 2022
RazvanN
August 24, 2016
https://issues.dlang.org/show_bug.cgi?id=16412

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar@ketmar.no-ip.org

--
July 18, 2017
https://issues.dlang.org/show_bug.cgi?id=16412

feklushkin.denis@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |feklushkin.denis@gmail.com

--
November 10, 2022
https://issues.dlang.org/show_bug.cgi?id=16412

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from RazvanN <razvan.nitu1305@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.

--