blob: e922b5926a4119968138b6ecef457e94e50defb7 [file] [log] [blame]
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);
}