mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
22 lines
279 B
D
22 lines
279 B
D
|
|
struct Base {
|
|
int i;
|
|
}
|
|
|
|
struct A {
|
|
Base base;
|
|
alias base this;
|
|
}
|
|
|
|
struct B {
|
|
A a;
|
|
alias a this;
|
|
}
|
|
|
|
auto otherTest(inout ref Base block) @nogc { assert(0); }
|
|
auto otherTest(inout ref A block) @nogc {}
|
|
|
|
void main() {
|
|
B* thingie;
|
|
otherTest(*thingie);
|
|
}
|