]> git.ipfire.org Git - people/ms/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail23745.d
d: Merge upstream dmd, druntime 4ca4140e58, phobos 454dff14d.
[people/ms/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail23745.d
1 // https://issues.dlang.org/show_bug.cgi?id=2374
2
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/fail23745.d(21): Error: undefined identifier `UndefinedType`
7 fail_compilation/fail23745.d(14): Error: function `fun` does not override any function, did you mean to override `fail23745.A.fun`?
8 fail_compilation/fail23745.d(21): Function `fail23745.A.fun` contains errors in its declaration, therefore it cannot be correctly overriden
9 ---
10 */
11
12 class B : A
13 {
14 override void fun()
15 {
16 }
17 }
18
19 class A
20 {
21 void fun(UndefinedType);
22 }