Happens with both 2.054 stock and Git head:
static struct Impl
{
File file_;
}
struct File
{
struct ByChunkAsync
{
RefCounted!(Impl) impl_;
}
}
struct Tuple(Specs...)
{
Specs field;
alias field this;
}
struct RefCounted(T)
{
Tuple!(T, size_t) * _store;
}
test9.d(17): Error: alias this there can be only one alias this
test9.d(15): Error: struct test9.Tuple!(Impl,uint).Tuple has forward references
test9.d(10): Error: template instance test9.RefCounted!(Impl) error instantiating
test9.d(17): Error: alias this there can be only one alias this