d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail4511.d
blobefe4d41aeddbf91e62d1888ea9499e55c88c310f
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail4511.d(18): Error: cannot implicitly override base class method `fail4511.test72.X.func` with `fail4511.test72.Y.func`; add `override` attribute
5 ---
6 */
7 void test72()
9 class A {}
10 class B : A {}
12 class X
14 abstract A func();
16 class Y : X
18 B func() { return new A(); }
22 void main() {}