1 // EXTRA_SOURCES: imports/linktypeinfo_file.d 2 // PERMUTE_ARGS: -g -inline -unittest -debug 3 // COMPILE_SEPARATELY 4 5 import imports.linktypeinfo_file; 6 Only(T)7struct Only(T) 8 { 9 private T _val; 10 } 11 only(V)12auto only(V)(V v) 13 { 14 return Only!V(v); 15 } 16 Chain(R...)17static struct Chain(R...) 18 { 19 R source; 20 } 21 chain(R...)22auto chain(R...)(R rs) 23 { 24 return Chain!R(rs); 25 } 26 main()27void 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