dmd/compiler/test/compilable/test16540.d
2022-07-09 18:53:07 +02:00

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
}