Summary: cannot call protected base class method by using base
                    class name
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Stephan Dilly <> 2010-08-26 09:41:13 PDT 
the way how one has to invoke protected base class methods in D seems to be
inconsistent. why do i have to use the super keyword ? using the base class
name works in case of being public, why is protected any different ?

module Foo;

class Base
protected void foo() {}

module main;

import Foo;

class Super : Base
override protected void foo() {;} // works
//override void foo() {;} // does not work:
//Error: class Foo.Base member foo is not accessible

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to