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.
21 lines
433 B
21 lines
433 B
4 years ago
|
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 );
|
||
|
}
|
||
|
|