https://issues.dlang.org/show_bug.cgi?id=14653
--- Comment #5 from Ketmar Dark <[email protected]> --- p.s. seems that what triggers the bug is `alias this` in wrapper. removing `alias this` and rewriting wrapper to do simple redirections emits the correct output. i.e. changing `Wrapper` struct to the following one makes the bug go away: static struct Wrapper { SomeRangeType rng; //alias rng this; @property int front () { return rng.front; } void popFront () { rng.popFront; } @property bool empty () { return rng.empty; } @disable this (this); ~this () { writeln("wrapper dtor"); } } --
