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

13 lines
296 B
D

// https://issues.dlang.org/show_bug.cgi?id=16013
S s; /* Only this line has changed from above. */
struct RefCounted
{
void opAssign(RefCounted rhs) {}
void opAssign(S rhs) {}
S refCountedPayload() { return S.init; }
alias refCountedPayload this;
}
struct S { RefCounted s; }