mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
15 lines
197 B
D
15 lines
197 B
D
// https://issues.dlang.org/show_bug.cgi?id=22226
|
|
|
|
struct A {}
|
|
|
|
A move(A a) { return A.init; }
|
|
|
|
struct SumType
|
|
{
|
|
A a;
|
|
|
|
this(A value)
|
|
{
|
|
a = __ctfe ? value : move(value);
|
|
}
|
|
}
|