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

36 lines
467 B
D

struct RefCounted(T)
{
struct RefCountedStore
{
private struct Impl
{
T _payload;
}
private Impl* _store;
}
RefCountedStore _refCounted;
~this()
{
import core.stdc.stdlib : free;
}
}
struct GroupBy(R)
{
struct SharedInput
{
Group unused;
}
struct Group
{
private RefCounted!SharedInput _allGroups;
}
}
void main()
{
GroupBy!(int[]) g1;
}