You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
403 B
23 lines
403 B
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);
|
|
}
|
|
|