view compile/a/assert_14_J.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents 3446efc90696
children
line wrap: on
line source

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

// @author@	Don Clugston <dac@nospam.com.au>
// @date@	2006-02-22
// @uri@	http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6340

module dstress.compile.a.assert_14_J;

template cat(uint x){
	static assert(x % 2);
	static if(1){
		static assert(x != 3);
		static if(1){
			static assert(x < 10);
			const int cat = 3;
		}
	}
}

static assert(cat!(5) == 3);