view compile/m/mangleof_19_B.d @ 1586:a74f0139fc3d

Fix tests using typeof on types.
author Christian Kamm <kamm incasoftware de>
date Thu, 21 Aug 2008 15:42:21 +0200
parents daef239f37cf
children
line wrap: on
line source

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

// @author@	Don Clugston <clugdbug@yahoo.com.au>
// @date@	2006-11-16
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=532
// @desc@	[Issue 532] New: Wrong name mangling for template alias params of local vars

module dstress.compile.m.mangleof_19_B;

template Apple(alias F){
	struct Basket {
	}

	alias void function (Basket) H;

	const char [] mangledname = H.mangleof;
}

template Peach(alias A){
	const char [] root = Apple!(A).mangledname;
	static assert(Apple!(A).mangledname == root);
}

int main(){
	int tree;
	const char[] s = Peach!(tree).root;

	return 0;
}