view run/p/private_09_D.d @ 1270:660f9196b52a

partial review
author thomask
date Sat, 23 Dec 2006 12:58:47 +0000
parents 52501fe7cda5
children b8c0195059d9
line wrap: on
line source

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

// @author@	Kris <fu@bar.com>
// @date@	2005-12-17
// @uri@	news:do2bam$2ab0$1@digitaldaemon.com

// __DSTRESS_TORTURE_BLOCK__ -release

module dstress.run.p.private_09_D;

class Base(T){
	private int i;
}

class Derived(T) : Base!(T){
	int test(){
		return i++;
	}
}

int main(){
	Derived!(char) d = new Derived!(char)();

	assert(d.test() == 0);
	
	if(d.test() == 1){
		return 0;
	}
}