bug?

bobef adas at adasd.asdasd
Thu Apr 5 10:20:50 PDT 2007


a.d 
-------------------------

import b;

class A
{

private:
	int a;
protected:
	int aa;
}

class B : A
{
	void fff(){a=5;aa=5;}
}

class D : C
{
	void fff(){a=5;}
}

void main()
{
	auto a=new A;
	a.a=5;
	a.aa=5;
}




b.d
----------------------------------------------------

class C
{
	private:
	int a;
}







dmd a b

a.d(20): class a.D member a is not accessible



------------

What the? Not accessible for the child class but accessible for other classes/functions in the same module?


More information about the Digitalmars-d-bugs mailing list