view run/t/template_20_F.d @ 1586:a74f0139fc3d

Fix tests using typeof on types.
author Christian Kamm <kamm incasoftware de>
date Thu, 21 Aug 2008 15:42:21 +0200
parents 61617b6d35af
children
line wrap: on
line source

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

module dstress.run.t.template_20_F;

template T(ireal f){
	ireal cf = f;
}

int main(){
	const ireal a = 1.2i;
	assert(T!(a).cf == a);

	const ireal b = -0.8i;
	assert(T!(b).cf == b);

	return 0;
}