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

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

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

// @author@	<oskar.linde@gmail.com>
// @date@	2006-07-06
// @uri@	news:bug-241-3@http.d.puremagic.com/issues/

module dstress.run.b.bug_template_622_A;

template func(T, T c = 1){
	T func(T x){
		return x + c;
	}
}

int main(){
	if(func(1) != 2){
		assert(0);
	}

	return 0;
}