gcc/testsuite/gdc.test/compilable/test16013a.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=16013 |
| 2 | |
| 3 | struct Impl { S _payload; } /* Only this line has changed from above. */ |
| 4 | |
| 5 | struct RefCounted |
| 6 | { |
| 7 | void opAssign(RefCounted rhs) {} |
| 8 | void opAssign(S rhs) {} |
| 9 | S refCountedPayload() { return S.init; } |
| 10 | alias refCountedPayload this; |
| 11 | } |
| 12 | |
| 13 | struct S { RefCounted s; } |