[Issue 21184] Unimplemented methods of interface are not reported as errors during compilation.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 17 07:48:11 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21184
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |INVALID
--- Comment #1 from RazvanN <razvan.nitu1305 at 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.
--
More information about the Digitalmars-d-bugs
mailing list