mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
21 lines
236 B
D
21 lines
236 B
D
// https://issues.dlang.org/show_bug.cgi?id=22209
|
|
|
|
struct U { size_t[4] a; }
|
|
|
|
struct S
|
|
{
|
|
int x;
|
|
U u;
|
|
alias u this;
|
|
}
|
|
|
|
U foo()
|
|
{
|
|
S s = S(42, U([1, 2, 3, 4]));
|
|
return s;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
assert(foo().a[0] == 1);
|
|
}
|