summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/d/40030-delegate.d
blob: 5f7beceb3e4210c240e412e146b94d9adc201856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module er;

void delegate(ubyte[] a) TSender;
bool delegate(ushort a)  TVerifier;
typedef ushort          TAddr;

public void delegate(ubyte[] a) TSender;
public bool delegate(ushort a)  TVerifier;
public typedef ushort   TAddr;

void delegate() dg;
dg = {
    int y;
};

int opApply(int delegate(inout Type[, ...]) dg);

void main()
{
    assert(findIf("bcecg", (int x) { return x == 'a'; }) == 5);
}