Debian Codegraph @

gcc/testsuite/gdc.test/compilable/copyCtor2.d

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 }