5fee5ec3 IB |
1 | // REQUIRED_ARGS: -preview=dip1000 |
2 | /* |
3 | TEST_OUTPUT: |
4 | --- |
5 | fail_compilation/fail809.d(11): Error: scope variable `dg_` may not be returned |
6 | --- |
7 | */ |
8 | int delegate() test(lazy int dg) |
9 | { |
10 | int delegate() dg_ = &dg; |
11 | return dg_; |
12 | } |