https://issues.dlang.org/show_bug.cgi?id=24411 --- Comment #1 from anonymous4 <dfj1esp02 at sneakemail.com> --- Yes, that's how shift normally works: https://dlang.org/spec/expression.html#shift_expressions I believe, the goto solution here is checked int. --