view run/b/bug_cgcs_353_D3.d @ 1089:03b5056496f1

pre DMD-0.163 review
author thomask
date Wed, 19 Jul 2006 21:00:13 +0000
parents 8bc1fdc33e0b
children b8c0195059d9
line wrap: on
line source

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

// @author@	James Dunne <james.jdunne@gmail.com>
// @date@	2005-08-28
// @uri@	news:dethn0$1gn8$1@digitaldaemon.com

module dstress.run.b.bug_cgcs_353_D3;

class Foo {
	this(){
	}
}

int main(){
	Foo[] foos;

	if(foos.length != 0){
		assert(0);
	}

	foos = foos[] ~ new Foo();

	if(foos.length != 1){
		assert(0);
	}

	return 0;
}