view run/a/auto_17_F.d @ 1549:1e01d8b3e715

Dave <godaves@yahoo.com> 2006-11-26 http://d.puremagic.com/issues/show_bug.cgi?id=606
author thomask
date Mon, 23 Jul 2007 18:41:38 +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.a.auto_17_F;

auto z = r;
const float r = 2.0f;

int main(){
	auto x = z;

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

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

	return 0;
}