]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/imports/diag10141a.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / imports / diag10141a.d
1 module imports.diag10141a;
2
3 import imports.diag10141b;
4
5 string format()
6 {
7 auto w = Appender!string();
8 char[] digits = ['0'];
9 put(w, digits);
10 return null;
11 }
12
13 template Tuple(Specs...)
14 {
15 struct Tuple
16 {
17 Specs expand;
18
19 enum x = format(); // in injectNameFields()
20 }
21 }
22
23 private template Identity(alias T)
24 {
25 alias T Identity;
26 }