Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail19209.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail19209.d(16): Error: function `fail19209.Spammer.method()` does not override any function, did you mean to override variable `fail19209.Spam.method`?
5 fail_compilation/fail19209.d(16): Functions are the only declarations that may be overridden
6 ---
7 */
8
9 class Spam
10 {
11 int method;
12 }
13
14 class Spammer : Spam
15 {
16 override method() {}
17 }