1 // EXTRA_SOURCES: imports/linktypeinfo_file.d 2 // PERMUTE_ARGS: -g -inline -unittest -debug 3 // COMPILE_SEPARATELY 4 5 import imports.linktypeinfo_file; 6 7 struct Only(T) 8 { 9 private T _val; 10 } 11 12 auto only(V)(V v) 13 { 14 return Only!V(v); 15 } 16 17 static struct Chain(R...) 18 { 19 R source; 20 } 21 22 auto chain(R...)(R rs) 23 { 24 return Chain!R(rs); 25 } 26 27 void main() 28 { 29 string docRoot; 30 31 const r = dirEntries(docRoot); 32 typeof(r)[] a; 33 a.length = 0; // require TypeInfo for const(FilterResult!(DirIterator)) 34 } 35