mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
14 lines
261 B
D
14 lines
261 B
D
/* REQUIRED_ARGS:
|
|
PERMUTE_ARGS:
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=16540
|
|
|
|
@safe:
|
|
|
|
void foo(scope lazy int* f) @nogc {
|
|
}
|
|
|
|
void bar1() @nogc {
|
|
foo(new int(5)); // It does not understand that the new here is wrapped in an invisible delegate
|
|
}
|