mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
15 lines
166 B
D
15 lines
166 B
D
import core.attribute;
|
|
|
|
@mustuse struct S
|
|
{
|
|
ref S opOpAssign(string op)(S rhs) return
|
|
{
|
|
return this;
|
|
}
|
|
}
|
|
|
|
void test()
|
|
{
|
|
S a, b;
|
|
a += b;
|
|
}
|