blob: 983147dee6d6d8c16a017d41144a2383d6c8d502 [file] [log] [blame]
void doBar(T)(T t)
{
static if (t.tupleof.length)
if (zoo!t.length == 0) {}
static if (is(T B == super)
&& is(B[0] == class)
&& is(B[])
)
{
B[0] b = t;
doBar(b);
}
}
template zoo(alias t)
{
enum zoo = __traits(getAttributes, t.tupleof);
}