mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
14 lines
188 B
D
14 lines
188 B
D
/* This used to not be allowed
|
|
* https://github.com/dlang/dmd/pull/20634
|
|
*/
|
|
|
|
struct A
|
|
{
|
|
this (ref shared A a) immutable {}
|
|
}
|
|
|
|
struct B
|
|
{
|
|
A a;
|
|
this(immutable B b) shared {}
|
|
}
|