mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
13 lines
199 B
D
13 lines
199 B
D
// https://issues.dlang.org/show_bug.cgi?id=809
|
|
void test(lazy int dg)
|
|
{
|
|
int delegate() dg_ = &dg;
|
|
assert(dg_() == 7);
|
|
assert(dg == dg_());
|
|
}
|
|
|
|
void main()
|
|
{
|
|
int a = 7;
|
|
test(a);
|
|
}
|