mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
13 lines
319 B
D
13 lines
319 B
D
// https://issues.dlang.org/show_bug.cgi?id=16013
|
|
|
|
struct Impl { S _payload; } /* 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; }
|