mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
27 lines
583 B
D
27 lines
583 B
D
/*
|
|
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: template `to` is not 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();
|
|
}
|