mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
18 lines
555 B
D
18 lines
555 B
D
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail17354.d(12): Error: cannot implicitly override base class method `object.Object.opEquals` with `fail17354.Foo.opEquals`; add `override` attribute
|
|
fail_compilation/fail17354.d(17): Error: cannot implicitly override base class method `object.Object.opEquals` with `fail17354.Bar.opEquals`; add `override` attribute
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=17354
|
|
|
|
final class Foo
|
|
{
|
|
bool opEquals(const Object) const {return true;}
|
|
}
|
|
|
|
class Bar
|
|
{
|
|
bool opEquals(const Object) const {return true;}
|
|
}
|