blob: 4f5b0763d4810d1ac8ac111c8882197db39308ad [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail8631.d(14): Error: function `shared const int fail8631.D.foo()` does not override any function, did you mean to override `immutable int fail8631.B.foo()`?
---
*/
class B {
int foo() immutable { return 2; }
int foo() const { return 2; }
}
class D : B {
override int foo() immutable { return 2; }
override int foo() const shared { return 2; } // doesn't override any
override int foo() const { return 2; }
}