August 29, 2010 [dmd-internals] Bug of protected | ||||
---|---|---|---|---|
| ||||
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.
|
August 29, 2010 [dmd-internals] Bug of protected | ||||
---|---|---|---|---|
| ||||
Posted in reply to SHOO | 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 > > > |
Copyright © 1999-2021 by the D Language Foundation