Bug 12344 – .di generation doesn't include contracts in interfaces

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-10T20:48:29Z
Last change time
2022-04-07T12:03:45Z
Keywords
pull
Assigned to
No Owner
Creator
Adam D. Ruppe
Depends on
6549

Comments

Comment #0 by destructionator — 2014-03-10T20:48:29Z
Since contracts are logically part of an interface, they should be included in the automatically generated .di file See also: https://d.puremagic.com/issues/show_bug.cgi?id=6549 as to why it won't work for abstract classes or even interface files without the bodies.
Comment #1 by dlang-bot — 2022-04-03T14:18:33Z
@dkorpel created dlang/dmd pull request #13943 "Fix Issue 12344 - .di generation doesn't include contracts in interfaces" fixing this issue: - Fix Issue 12344 - .di generation doesn't include contracts in interfaces https://github.com/dlang/dmd/pull/13943
Comment #2 by dlang-bot — 2022-04-07T12:03:45Z
dlang/dmd pull request #13943 "Fix Issue 12344 - .di generation doesn't include contracts in interfaces" was merged into master: - d42016e159126e21125fdbd7ffb9c4bf0376d732 by Dennis Korpel: Fix Issue 12344 - .di generation doesn't include contracts in interfaces https://github.com/dlang/dmd/pull/13943