Bug 13261 – `protected` base class members are not accessible using `super` in nested functions of derived class member functions

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-05T14:26:10Z
Last change time
2024-12-13T18:23:33Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Denis Shelomovskii
Moved to GitHub: dmd#17674 →

Comments

Comment #0 by verylonglogin.reg — 2014-08-05T14:26:10Z
This code should compile: --- module a; class A { protected int i; } --- import a; class B: A { void f() { () { ++i; } (); // ok () { ++super.i; } (); // Error: i is not accessible } } --- main.d(8): Error: class a.A member i is not accessible ---
Comment #1 by robert.schadek — 2024-12-13T18:23:33Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17674 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB