www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14589] New: Wrongly signalling deprecation

https://issues.dlang.org/show_bug.cgi?id=14589

          Issue ID: 14589
           Summary: Wrongly signalling deprecation
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: svv1999 hotmail.com

class C{
  auto opUnary( string op)() {
    return this;
  }
}

class D:C{
  auto opUnary( string op)(){
    return super--;
  }
}
void main(){
  auto var= new D;
  var--;
}

--
May 15 2015