mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
12 lines
280 B
D
12 lines
280 B
D
// PERMUTE_ARGS:
|
|
// REQUIRED_ARGS: -de
|
|
|
|
class B {
|
|
int foo() immutable { return 2; }
|
|
int foo() const { return 2; }
|
|
}
|
|
class D : B {
|
|
override int foo() immutable { return 2; }
|
|
int foo() const shared { return 2; }
|
|
override int foo() const { return 2; }
|
|
}
|