view compile/e/enum_48_C.d @ 1147:90cf22616882

[Issue 349] New: Function matching with enums is erratic Stewart Gordon <smjg@iname.com> 2006-09-15 news:bug-349-3@http.d.puremagic.com/issues/
author thomask
date Wed, 20 Sep 2006 19:11:31 +0000
parents
children daef239f37cf
line wrap: on
line source

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

// @author@	Stewart Gordon <smjg@iname.com>
// @date@	2006-09-15
// @uri@	news:bug-349-3@http.d.puremagic.com/issues/
// @desc@	[Issue 349] New: Function matching with enums is erratic

module dstress.compile.e.enum_48_C;

enum E : uint{
	A = 1
}

template T(uint a){
	const uint T = a + 1;
}

template T(E e){
	const E T = e;
}

static assert(T!(1) == 2);