view nocompile/e/enum_50_B.d @ 1155:484211f83bfc

wrong function overload Karen Lanrap <karen@digitaldaemon.com> 2006-09-27 news:Xns984BB274364EFdigitaldaemoncom@63.105.9.61
author thomask
date Fri, 29 Sep 2006 06:55:54 +0000
parents
children 1ee9a0dd42d9
line wrap: on
line source

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

// @author@	Karen Lanrap <karen@digitaldaemon.com>
// @date@	2006-09-27
// @uri@	news:Xns984BB274364EFdigitaldaemoncom@63.105.9.61
// @desc@	wrong function overload

// __DSTRESS_ELINE__ 29

module dstress.nocompile.e.enum_50_B;

enum Color{
	RED
}

enum Age{
	OLD
}

struct S{
	static void foo(Color c){
		assert(0);
	}
}

int main(){
	S.foo(Age.OLD);

	return 0;
}