☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
copyCtor2.d
☽
☼
gcc/testsuite/gdc.test/compilable/copyCtor2.d
code
plain
raw
1
/* This used to not be allowed
2
* https://github.com/dlang/dmd/pull/20634
3
*/
4
5
struct A
6
{
7
this (ref shared A a) immutable {}
8
}
9
10
struct B
11
{
12
A a;
13
this(immutable B b) shared {}
14
}