blob: 08f5de3e2996f4d924eda21d837d69c326b59d77 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail6242.d(9): Error: cannot implicitly override base class method `fail6242.A.fun` with `fail6242.B.fun`; add `override` attribute
---
*/
class A { void fun(int) {} }
class B : A { void fun(int x) in { assert(x > 0); } body {} }