class C{ void foo(){} } class D: C{ @disable override void foo(){} // should be a compile-time error } Disabling an override does not make any sense and should be disallowed.
Same thing for deprecated overrides.
*** Issue 1449 has been marked as a duplicate of this issue. ***
*** Issue 5171 has been marked as a duplicate of this issue. ***
https://github.com/dlang/dmd/pull/6570
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/9441e5a68bf473d7780bb2cab0c993f6819dc9ad issue 6760 - deprecate `@disable` on overridden and deprecated functions https://github.com/dlang/dmd/commit/6d8409d2f7502506044de9e62fde082aebf6ca29 Merge pull request #6570 from BBasile/issue-6760 issue 6760 - deprecate `@disable` on overridden and deprecated functions
6570 was merged, so this looks fixed.
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/9441e5a68bf473d7780bb2cab0c993f6819dc9ad issue 6760 - deprecate `@disable` on overridden and deprecated functions https://github.com/dlang/dmd/commit/6d8409d2f7502506044de9e62fde082aebf6ca29 Merge pull request #6570 from BBasile/issue-6760