view compile/p/pragma_msg_02_B.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents df094b948707
children
line wrap: on
line source

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

// @author@	Frits van Bommel <fvbommel@wxs.nl>
// @date@	2007-02-06
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=934
// @desc@	[Issue 934] forward reference by pragma(msg) in template: "mtype.c:550: virtual Expression* Type::getProperty(Loc, Identifier*): Assertion `deco' failed"

module dstress.compile.p.pragma_msg_02_B;

template Templ(T) {
	alias T Type;
	pragma(msg, Type.mangleof);
}

Templ!(int).Type x;

static assert(is(typeof(x) == int));