mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
21 lines
286 B
D
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;
|
|
}
|