blob: c2f7f13558ad3fe5ba747cc6562ef620b3b7ef59 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail3581b.d(9): Error: function `fail3581b.B.f` `private` method is not virtual and cannot override
---
*/
class A { void f() {} }
class B : A { private override void f() {}; }
void main() {}