http://d.puremagic.com/issues/show_bug.cgi?id=10752
Summary: accessing a private cached symbol a second time
doesn't cause an error in __traits(compiles, ...)
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Henning Pohl <[email protected]> 2013-08-03 05:08:44
PDT ---
module a;
private int priv;
module b;
import a;
void main()
{
static assert(!__traits(compiles, priv));
static assert(!__traits(compiles, priv)); // fails
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------