blob: 5be3af7dfff128d9657999c980fd243d1303c84e [file] [log] [blame]
// https://bugzilla.gdcproject.org/show_bug.cgi?id=280
// { dg-do compile }
struct RBNode280
{
RBNode280* _parent;
@property left(RBNode280*)
{
_parent = &this;
}
}
class RedBlackTree280
{
RBNode280* _end;
RBNode280* _begin;
this(int[] elems...)
{
_end = new RBNode280;
foreach (e; elems)
{
_end.left = _begin;
}
}
}
__gshared s = new RedBlackTree280('h');