view run/c/const_36_A.d @ 1560:36bedfa079e6

D1 -> D2 : 2/N
author thomask
date Sun, 19 Aug 2007 19:15:01 +0000
parents ab71ca67c717
children
line wrap: on
line source

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

// @author@	Dave <Dave_member@pathlink.com>
// @date@	2006-03-18
// @uri@	news:dvgq34$22hv$1@digitaldaemon.com

module dstress.run.c.const_36_A;

template T(real r){
	const T = r;
}

int main(){
	auto x = T!(2);

	static assert(is(x == real));

	if(x != 2.0L){
		assert(0);
	}

	return 0;
}