6013 – private ignored for aliases

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6013 - private ignored for aliases
Summary: private ignored for aliases
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: Martin Nowak
URL:
Keywords: accepts-invalid
Depends on:
Blocks:
Reported: 2011年05月15日 18:20 UTC by Jonathan M Davis
Modified: 2015年06月09日 05:15 UTC (History)
2 users (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Jonathan M Davis 2011年05月15日 18:20:05 UTC
---------
module a;
import b;
void main()
{
 bar();
}
---------
module b;
void foo()
{
}
private alias foo bar;
---------
This code compiles just fine. It shouldn't. bar is a private alias.
Comment 1 github-bugzilla 2012年01月23日 02:15:15 UTC
Commit pushed to https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/ac75ddc83d5cffd913fbfd6f2bbb9cbe91364479
Merge pull request #636 from dawgfoto/fix6013
Issue 6013 - private ignored for aliases


AltStyle によって変換されたページ (->オリジナル) /