[Issue 8885] New: Passing super class' private method as delegate allowed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 24 07:41:01 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8885
Summary: Passing super class' private method as delegate
allowed
Product: D
Version: D1 & D2
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: gavin.norman at sociomantic.com
--- Comment #0 from gavin.norman at sociomantic.com 2012-10-24 07:41:00 PDT ---
a.d
module a;
class A
{
private d ( ) { }
}
b.d
module b;
import a;
class B : A
{
void x ( void delegate ( ) dg ) { dg(); }
void f ( )
{
x(&super.d); // Expected to not be allowed to access private method of
A
}
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list