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

21 lines
286 B
D

// https://issues.dlang.org/show_bug.cgi?id=20025
struct B
{
static int value = 77;
alias value this;
this(ref return scope inout B rhs) inout { }
}
void test(int x)
{
assert(x == 77);
}
int main()
{
B b;
test(b);
return 0;
}