digitalmars.D.bugs - [Issue 6762] New: Template parameter declaration does name lookup
- d-bugmail puremagic.com (31/31) Oct 03 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6762
http://d.puremagic.com/issues/show_bug.cgi?id=6762 Summary: Template parameter declaration does name lookup Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: peter.alexander.au gmail.com --- Comment #0 from Peter Alexander <peter.alexander.au gmail.com> 2011-10-03 15:07:40 PDT --- --------foo.d---------- private int X; --------bar.d---------- import foo; int bar(int X)() // error: foo.X is private { return 0; } int main() { return bar!(0)(); } ---------------------- It happens for template type parameters as well, but you don't notice it due to bug 2830. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 03 2011