view compile/m/mixin_35_D.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 b5f3f03b37ad
children
line wrap: on
line source

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

// @author@	Reiner Pope <reiner.pope@gmail.com>
// @date@	2007-04-08
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1113
// @desc@	[Issue 1113] Mixin causes incorrect static if branching

module dstress.compile.m.mixin_35_D;

template Foo(){
	mixin("alias char[] TheType;");
	static assert(is(TheType : char[]));
}

mixin Foo!();