mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
24 lines
288 B
D
24 lines
288 B
D
// https://issues.dlang.org/show_bug.cgi?id=20710
|
|
|
|
// with empty array literal
|
|
immutable A a = A(B([]));
|
|
immutable B b = a.b;
|
|
|
|
struct A {
|
|
B b;
|
|
}
|
|
|
|
struct B {
|
|
int[] c;
|
|
}
|
|
|
|
// with empty struct literal
|
|
immutable C c = C(D());
|
|
immutable D d = c.d;
|
|
|
|
struct C {
|
|
D d;
|
|
}
|
|
|
|
struct D {
|
|
}
|