mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 01:20:51 +03:00
13 lines
167 B
D
13 lines
167 B
D
// RUN: %ldc -run %s
|
|
|
|
void foo(void delegate() sink)
|
|
{
|
|
return (0, sink());
|
|
}
|
|
|
|
void main()
|
|
{
|
|
bool called;
|
|
foo(() { called = true; });
|
|
assert(called);
|
|
}
|