← Back to index
|
Original Bugzilla link
Bug 1162 – Access to static field in inherited class is not possible with base class qualifier.
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2007-04-18T04:10:48Z
Last change time
2019-07-12T10:23:45Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Marcin Kuszczak
Comments
Comment #0
by aarti — 2007-04-18T04:10:48Z
--------------- module static_a; import static_b; class TestChild : Test { void testfunction() { Test.counter=6; } } void main() { } --------------- module static_b; class Test { protected: static int counter=0; }
Comment #1
by smjg — 2007-09-29T08:07:48Z
DMD 1.021: static_a.d(5): class static_b.Test member counter is not accessible
Comment #2
by pro.mathias.lang — 2019-05-21T00:51:01Z
This is still very much valid as of DMD 2.086.
Comment #3
by razvan.nitu1305 — 2019-07-12T10:23:45Z
Compiling this code with git master results in successful compilation. Closing as WORKFSFORME.