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

RazvanN <razvan.nitu1...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1...@gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from RazvanN <razvan.nitu1...@gmail.com> ---
I think that this is the correct behavior. The function is defined (and
therefore respects the interface contract) it's just that it does not have a
body. You can provide the body in a different file.

Think about header files (.di). Those should contain compilable d code and not
contain any function bodies. If this were to be fixed, then you would not be
able to have any interfaces and classes in .di files.

Closing as invalid.

--

Reply via email to