d: Merge dmd. druntime e770945277, phobos 6d6e0b9b9
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail162.d
blob600e2c9d69c9500ab5f7d573dc6ffe8ba2c95d99
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail162.d(25): Error: template `testHelper` is not callable using argument types `!()(string, string)`
5 fail_compilation/fail162.d(10): Candidate is: `testHelper(A...)()`
6 fail_compilation/fail162.d(30): Error: template instance `fail162.test!("hello", "world")` error instantiating
7 ---
8 */
10 template testHelper(A ...)
12 char[] testHelper()
14 char[] result;
15 foreach (t; a)
17 result ~= "int " ~ t ~ ";\r\n";
19 return result;
23 template test(A...)
25 const char[] test = testHelper(A);
28 int main(char[][] args)
30 mixin(test!("hello", "world"));
31 return 0;