```
enum E {
e
}
struct S {
int s;
}
enum E e1 = cast(E) S(0).s;
```
onlineapp.d(7,23): Error: cannot implicitly convert expression `0` of type `int` to `E`
This should compile, but dmd for some reason wants to convert `0` to `E` in the constructor of `S`.
Comment #1 by robert.schadek — 2024-12-13T19:18:12Z