mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
16 lines
271 B
D
16 lines
271 B
D
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fix23138.d(14): Error: function `fix23138.C2.foo` cannot override `@safe` method `fix23138.C1.foo` with a `@system` attribute
|
|
---
|
|
*/
|
|
|
|
class C1 {
|
|
void foo() @safe
|
|
{}
|
|
}
|
|
|
|
class C2 : C1
|
|
{
|
|
override void foo() @system
|
|
{}
|
|
}
|