Warn.onLowerBound

T onLowerBound(Rhs, T)(Rhs rhs, T bound)

Called automatically upon a bad opOpAssign call (one that loses precision or attempts to convert a negative value to an unsigned type).

Parameters

rhsThe right-hand side value in the assignment, after the operator has been evaluated
boundThe bound being violated

Returns

cast(T) rhs