Debian Codegraph @

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

raw
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/fix23138.d(14): Error: function `fix23138.C2.foo` cannot override `@safe` method `fix23138.C1.foo` with a `@system` attribute
4 ---
5 */
6
7 class C1 {
8 void foo() @safe
9 {}
10 }
11
12 class C2 : C1
13 {
14 override void foo() @system
15 {}
16 }