view compile/t/tuple_05_B.d @ 1243:70b7f985fe9f

[Issue 582] New: Cannot slice mixed tuples Michael Arntzenius <daekharel@gmail.com> 2006-11-21 news:bug-582-3@http.d.puremagic.com/issues/
author thomask
date Sat, 25 Nov 2006 17:53:39 +0000
parents
children daef239f37cf
line wrap: on
line source

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

// @author@	Michael Arntzenius <daekharel@gmail.com>
// @date@	2006-11-21
// @uri@	news:bug-582-3@http.d.puremagic.com/issues/
// @desc@	[Issue 582] New: Cannot slice mixed tuples

module dstress.compile.t.tuple_05_B;

template Tuple(T ...) {
	const Tuple = T[1 .. 3].length;
}

static assert(Tuple!('a', 'b', 'c', float) == 2);