https://issues.dlang.org/show_bug.cgi?id=15280

--- Comment #2 from Andrei Alexandrescu <[email protected]> ---
(In reply to Sobirari Muhomori from comment #1)
> One const method looks enough in your case:
> 
>       List tail() const
>       {
>               assert(root);
>               auto n = root.next;
>               return List(n);
>       }

Working around this case is not the point - there are many other cases that
don't work.

--

Reply via email to