mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
16 lines
233 B
D
16 lines
233 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail188.d(15): Error: function `fail188.Derived.foo` cannot override `final` function `fail188.Base.foo`
|
|
---
|
|
*/
|
|
|
|
class Base
|
|
{
|
|
final void foo() {}
|
|
}
|
|
|
|
class Derived : Base
|
|
{
|
|
void foo() {}
|
|
}
|