Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue 20796: package protected symbol declared in the same packag… #11100

Merged
merged 3 commits into from
May 5, 2020

Conversation

thewilsonator
Copy link
Contributor

…e.d don't work

N.B I'm unsure if I need to do anything special to ensure that the test runs, given it is in a subfolder. cc @MoonlightSentinel hopefully you know.

@thewilsonator thewilsonator requested a review from Geod24 as a code owner May 5, 2020 04:33
@dlang-bot
Copy link
Contributor

Thanks for your pull request and interest in making D better, @thewilsonator! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Auto-close Bugzilla Severity Description
20796 enhancement protection attribute package(x.y) does not bind to one of ancestor packages of module x.y when declared in x/y/package.d

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#11100"

@ibuclaw
Copy link
Member

ibuclaw commented May 5, 2020

Before I'll do anything, let me reread the spec again.

I remember hitting some problem with package() in the past when doing a POC for std.math.package, but the spec matched the error (albeit, initially surprisingly, but made sense after some thought).

Can't remember any more details, but you may have stumbled on the same thing I encountered.

Copy link
Member

@ibuclaw ibuclaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I see it is a bug. :-)

@thewilsonator
Copy link
Contributor Author

Was that supposed to be an approval? You requested changes.

@ibuclaw
Copy link
Member

ibuclaw commented May 5, 2020

Needs test.

@thewilsonator
Copy link
Contributor Author

There is one ;) I'm not sure it being run though.

@ibuclaw
Copy link
Member

ibuclaw commented May 5, 2020

@thewilsonator

compilable/test20796.d:

// EXTRA_SOURCES: extra-files/issue20796/package.d
// https://issues.dlang.org/show_bug.cgi?id=20796

compilable/extra-files/issue20796/package.d

[your test here]

@thewilsonator
Copy link
Contributor Author

Done.

@ibuclaw
Copy link
Member

ibuclaw commented May 5, 2020

@thewilsonator you forgot to move the test file to its proper location.

@thewilsonator
Copy link
Contributor Author

whoops.

src/dmd/attrib.d Outdated Show resolved Hide resolved
@dlang-bot dlang-bot merged commit a9aecca into dlang:master May 5, 2020
rainers pushed a commit to rainers/dmd that referenced this pull request May 17, 2020
dlang#11100)

Fix issue 20796: package protected symbol declared in the same packag…
merged-on-behalf-of: Florian <moonlightsentinel@disroot.org>
@thewilsonator thewilsonator deleted the issue-20796 branch July 1, 2021 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants