www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15785] New: [DMD HEAD] Spurious warning when calling

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 puremagic.com
          Reporter: thecybershadow 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

--
Mar 10 2016