| 1 |
/* REQUIRED_ARGS: |
| 2 |
PERMUTE_ARGS: |
| 3 |
*/ |
| 4 |
|
| 5 |
// https://issues.dlang.org/show_bug.cgi?id=16540 |
| 6 |
|
| 7 |
@safe: |
| 8 |
|
| 9 |
void foo(scope lazy int* f) @nogc { |
| 10 |
} |
| 11 |
|
| 12 |
void bar1() @nogc { |
| 13 |
foo(new int(5)); // It does not understand that the new here is wrapped in an invisible delegate |
| 14 |
} |