blob: aeee10749c15fd890f863ea1fd683be310760dcd [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/diag13942.d(18): Error: template instance `isRawStaticArray!()` does not match template declaration `isRawStaticArray(T, A...)`
fail_compilation/diag13942.d(26): Error: none of the overloads of template `diag13942.to!double.to` are callable using argument types `!()()`
fail_compilation/diag13942.d(17): Candidate is: `to(A...)(A args)`
---
*/
template isRawStaticArray(T, A...)
{
enum isRawStaticArray = false;
}
template to(T)
{
T to(A...)(A args)
if (!isRawStaticArray!A)
{
return 0;
}
}
void main(string[] args)
{
auto t = to!double();
}