☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fix23138.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/fix23138.d
code
plain
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
}