Bug 17629 – package.di files cannot be used

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-07-09T22:12:31Z
Last change time
2021-07-09T22:11:14Z
Assigned to
No Owner
Creator
Eyal

Comments

Comment #0 by eyal — 2017-07-09T22:12:31Z
Unlike other .d files, package.d files cannot have interface-file counterparts. if a/package.d exists, "import a" works. if a/package.di exists, "import a" does not work. If both exist, the latter is ignored.
Comment #1 by github-bugzilla — 2017-07-10T04:49:20Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e205f8947bfb099dd12556cc5c3343cdee479eae fix Issue 17629: Try loading package.di prior to package.d * This is the same behavior as ordinary modules where .di files are scanned first https://github.com/dlang/dmd/commit/0bd1739fdd8b87e57f4886555f27a8e07e98c643 add test for Issue 17629 - package.di files not supported
Comment #2 by github-bugzilla — 2017-08-07T13:17:25Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e205f8947bfb099dd12556cc5c3343cdee479eae fix Issue 17629: Try loading package.di prior to package.d https://github.com/dlang/dmd/commit/0bd1739fdd8b87e57f4886555f27a8e07e98c643 add test for Issue 17629 - package.di files not supported
Comment #3 by github-bugzilla — 2017-08-16T13:23:33Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e205f8947bfb099dd12556cc5c3343cdee479eae fix Issue 17629: Try loading package.di prior to package.d https://github.com/dlang/dmd/commit/0bd1739fdd8b87e57f4886555f27a8e07e98c643 add test for Issue 17629 - package.di files not supported
Comment #4 by dkorpel — 2021-07-09T22:11:14Z
*** Issue 16647 has been marked as a duplicate of this issue. ***