1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail188.d(15): Error: function fail188.Derived.foo cannot override final function fail188.Base.foo
5 ---
6 */
7 
8 class Base
9 {
foo()10     final void foo() {}
11 }
12 
13 class Derived : Base
14 {
foo()15     void foo() {}
16 }
17