dmd/compiler/test/runnable/bug19652.d
2022-07-09 18:53:07 +02:00

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);
}