https://issues.dlang.org/show_bug.cgi?id=7477

Kenji Hara <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #2 from Kenji Hara <[email protected]> ---
In git-head, diagnostic has been improved.

(In reply to Don from comment #0)
> struct Foo { int x; }
> enum Bar : Foo { a, b }

test.d(2): Error: cannot implicitly convert expression (0) of type int to Foo

(In reply to Jonathan M Davis from comment #1)
> The same thing happens if you do something like
> 
> enum Foo : string { a, b }

test.d(1): Error: cannot implicitly convert expression (0) of type int to
string

--

Reply via email to