Summary: member function marked as final override ignores
                    override requirements
           Product: D
           Version: 1.037
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


class C
    final override void foo(){}

This should fail to compile, because foo is not overriding any virtual
function.  A final function is allowed to override a virtual function to stop
overriding in derived classes, and to help performance.

Also happens on D 2.019


Reply via email to