mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
27 lines
261 B
D
27 lines
261 B
D
// https://issues.dlang.org/show_bug.cgi?id=21828
|
|
|
|
struct S
|
|
{
|
|
enum E
|
|
{
|
|
e1 = 0,
|
|
}
|
|
E e;
|
|
enum S s1 = S(E.e1);
|
|
}
|
|
|
|
SE se;
|
|
|
|
enum SE
|
|
{
|
|
e1 = S.s1
|
|
}
|
|
|
|
// reduced case, forward references just assume int value
|
|
|
|
E e;
|
|
|
|
enum E
|
|
{
|
|
a = "x"
|
|
}
|