view compile/t/tuple_18_A.d @ 1619:bebc7472a832

Fix #7.
author Christian Kamm <kamm incasoftware de>
date Sat, 07 Nov 2009 18:55:30 +0100
parents 8eb7223bbe9a
children
line wrap: on
line source

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

// @author@	Russ Lewis <webmaster@villagersonline.com>
// @date@	2007-03-05
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1026
// @desc@	[Issue 1026] dmd SEGV when checking length of Tuple elements when length == 0

module dstress.compile.t.tuple_18_A;

template Tuple(Elements...) {
	alias Elements Tuple;
}

struct foo {
	Tuple!() elements;
}

static assert(foo.elements.length == 0);