[Issue 15785] New: [DMD HEAD] Spurious warning when calling protected super
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Mar 10 15:19:20 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15785
Issue ID: 15785
Summary: [DMD HEAD] Spurious warning when calling protected
super
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: thecybershadow at gmail.com
////////// a.d //////////
class A
{
protected void f() {}
}
////////// b.d //////////
import a;
class B : A
{
override void f()
{
super.f();
}
}
/////////////////////////
DMD now complains:
b.d(7): Deprecation: a.A.f is not visible from module b
Of course this makes no sense - you can override a symbol but not call it?
Introduced in https://github.com/D-Programming-Language/dmd/pull/5472
--
More information about the Digitalmars-d-bugs
mailing list