Debian Codegraph @

tests/dmd/runnable/imports/ldc_github_131_1a.d

raw
1 module imports.ldc_github_131_1a;
2
3 struct FilterResult(alias pred, Range) {
4 Range _input;
5 this(Range r) {
6 auto a = pred();
7 }
8 }
9
10 struct RefCounted(T) {
11 T payload;
12 ~this() {}
13 }
14
15 struct DirIteratorImpl {}
16
17 struct DirIterator {
18 RefCounted!(DirIteratorImpl) impl;
19 @property int front(){ return 0; }
20 }
21
22 auto dirEntries() {
23 static bool f() { return false; }
24 return FilterResult!(f, DirIterator)(DirIterator());
25 }