view run/p/private_11_C.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents 083e64ed4dad
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Jarrett Billingsley <kb3ctd2@yahoo.com>
// @date@	2006-02-07
// @uri@	http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6184

module dstress.run.p.private_11_C;

class A{
	private int x;
}

class B{
	int test(A other){
		return other.x;
	}
}

int main(){
	A a = new A();
	B b = new B();
		
	assert(b.test(a) == 0);
	
	a.x = 3;
	assert(b.test(a) == 3);

	return 0;
}