Comment #0 by verylonglogin.reg — 2014-08-05T14:26:10Z
This code should compile:
---
module a;
class A
{
protected int i;
}
---
import a;
class B: A
{
void f()
{
() { ++i; } (); // ok
() { ++super.i; } (); // Error: i is not accessible
}
}
---
main.d(8): Error: class a.A member i is not accessible
---
Comment #1 by robert.schadek — 2024-12-13T18:23:33Z