Intended behavior or bug (private vs public static)

Andre via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 6 21:43:28 PST 2014


Hi,

following code fails with errors:
class test.A member b is not accessible

I am not sure, whether it should work or not?

Kind regards
André

module app;
import test;

void main()
{
	A.b("");
}

module test;

class A
{
	private void b(){}
	static void b(string b){}
}


More information about the Digitalmars-d-learn mailing list