blob: d32c6aeef51ba07f58c99ba5a2addb2b3e2f0884 [file] [log] [blame]
/* https://issues.dlang.org/show_bug.cgi?id=23135
REQUIRED_ARGS: -de
TEST_OUTPUT:
---
fail_compilation/fail23135.d(16): Deprecation: overriding `extern(C++)` function `fail23135.C23135.func()` with `const` qualified function `fail23135.Fail23135.func() const` is deprecated
fail_compilation/fail23135.d(16): Either remove `override`, or adjust the `const` qualifiers of the overriding function type
---
*/
extern(C++) class C23135
{
void func() { }
}
extern(C++) final class Fail23135 : C23135
{
override void func() const { }
}