gcc/testsuite/gdc.test/compilable/test21667.d
raw| 1 | // Issue 21667 - scope parameter causes 'no size because of forward references' |
| 2 | // https://issues.dlang.org/show_bug.cgi?id=21667 |
| 3 | @safe: |
| 4 | |
| 5 | struct Foo |
| 6 | { |
| 7 | void delegate(scope Foo) dg; |
| 8 | } |
| 9 | |
| 10 | struct M |
| 11 | { |
| 12 | F.Type f; |
| 13 | } |
| 14 | |
| 15 | struct F |
| 16 | { |
| 17 | enum Type {a} |
| 18 | void foo(scope M m) {} |
| 19 | } |