1 // https://bugzilla.gdcproject.org/show_bug.cgi?id=35
3 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
6 * Here the BinaryHeap instance uses an alias parameter and therefore
7 * the instance's functions (percolateDown) need to be generated in
8 * topNIndex->BinaryHeap scope and not in the declaration scope
9 * (module->BinaryHeap).
13 bool indirectLess(int a
, int b
)
18 auto a
= BinaryHeap
!(indirectLess
)();
21 struct BinaryHeap(alias less
)
35 * Similar as test35a but with an additional indirection.
36 * The nested function chain for percolateDown should look like this:
37 * topNIndex2->BinaryHeap2->percolateDown.
41 bool indirectLess(int a
, int b
)
45 auto a
= BinaryHeap2
!(S35b
!(indirectLess
)())();
56 struct BinaryHeap2(alias less
)