Debian Codegraph @

gcc/testsuite/gdc.test/compilable/extra-files/c6395.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=6395
2
3 template map(alias fun) {
4 auto map(Range)(Range r) {
5 struct Result
6 {
7 @property auto ref front()
8 {
9 return fun("a");
10 }
11 }
12 return Result();
13 }
14 }
15
16 Range find(alias pred, Range)(Range haystack) {
17 pred(haystack.front);
18 return haystack;
19 }
20