1 // REQUIRED_ARGS: -de
2 
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/deprecated6760.d(13): Deprecation: function deprecated6760.Foo.opEquals overridden functions cannot be annotated @disable
7 fail_compilation/deprecated6760.d(18): Deprecation: function deprecated6760.Bar.opEquals deprecated functions cannot be annotated @disable
8 ---
9 */
10 
11 class Foo
12 {
13     @disable override bool opEquals(Object);
14 }
15 
16 class Bar
17 {
18     deprecated override bool opEquals(Object);
19 }
20 
21