bug? (forward reference)

bobef asd at asd.asd
Fri Apr 20 03:09:20 PDT 2007


Is this a bug and if not what is it supposed to mean and why it doesn't work?




a.d(8): class a.B is forward referenced when looking for 'CONST1'
a.d(3): Error: no property 'CONST1' for type 'a.B'

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

class A
{
	static const CONST1=B.CONST1;
	static const CONST2=2;
}

class B
{
	static const CONST1=1;
	static const CONST2=2;
}

void main()
{
}


More information about the Digitalmars-d-bugs mailing list