xxxxxxxxxx
import std.stdio;
string SomeFunc( T )() if( is( T : AT[], AT ) )
{
return AT.stringof;
}
string SomeFuncThatCompiles( T )() if( is( T : AT[], AT ) )
{
static if( is( T : AT[], AT ) )
{
return AT.stringof;
}
}
pragma( msg, SomeFunc!( int[] ) );
pragma( msg, SomeFuncThatCompiles!( int[] ) );
void main()
{
writeln( "Yep, that's some weird shiz right there." );
}