view run/s/static_if_06_A.d @ 740:a14f98c3ae83

catch-up commit of bug reports
author thomask
date Sat, 12 Nov 2005 17:57:06 +0000
parents
children b8c0195059d9
line wrap: on
line source

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

// @author@	Don Clugston <dac@nospam.com.au>
// @date@	2005-11-11
// @uri@	news:dl1m44$41j$1@digitaldaemon.com

module dstress.run.s.static_if_06_A;

template t(int n){
	static if (n==1) {
		int a = n + 1;
	} else {
		int a = -n;
	}
}

int main(){
	mixin t!(2);

	assert(a == -2);

	return 0;
}