[dmd-internals] Bug of protected

Walter Bright walter at digitalmars.com
Sun Aug 29 14:54:22 PDT 2010


Reopened:

http://d.puremagic.com/issues/show_bug.cgi?id=4278

SHOO wrote:
> This code doesn't work(r649):
>
> ---------
> // main.d
> import other;
>
> class Foo : OtherModuleClass
> {
>         override void foo()
>         {
>                 super.foo();
>         }
> }
>
> void main()
> {
>         new Foo();
> }
>
> -----------
> // other.d
> class OtherModuleClass
> {
>         protected void foo()
>         {
>         }
> }
> -----------
>
>
>   
>> dmd main other
>>     
> main.d(8): Error: class other.OtherModuleClass member foo is not accessible
>
>
> This bug seem not to be able to call a protected method of super-class
> of other modules from derived-class.
> Tentatively, I cannot compile DFL.
> _______________________________________________
> dmd-internals mailing list
> dmd-internals at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>
>
>   


More information about the dmd-internals mailing list