view compile/m/mixin_35_C.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +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_C;

template Foo(){
	alias char[] TheType;

	static if (is(TheType : char[]))
		const int Bar = 13;
	else
		static assert(false);
}

static assert(13 == Foo!().Bar);