d: Merge dmd. druntime e770945277, phobos 6d6e0b9b9
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag13942.d
blob9248e094c15bd67b12e3eacefe6f54847bf41914
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag13942.d(18): Error: template instance `isRawStaticArray!()` does not match template declaration `isRawStaticArray(T, A...)`
5 fail_compilation/diag13942.d(26): Error: template `to` is not callable using argument types `!()()`
6 fail_compilation/diag13942.d(17): Candidate is: `to(A...)(A args)`
7 ---
8 */
10 template isRawStaticArray(T, A...)
12 enum isRawStaticArray = false;
15 template to(T)
17 T to(A...)(A args)
18 if (!isRawStaticArray!A)
20 return 0;
24 void main(string[] args)
26 auto t = to!double();