]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/compilable/extra-files/c6395.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / extra-files / c6395.d
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