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

15 lines
152 B
D

import core.attribute;
@mustuse struct S
{
ref S opAssign(S rhs) return
{
return this;
}
}
void test()
{
S a, b;
a = b;
}