Warn.onUpperBound

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

struct Warn
static
T
onUpperBound
(
Rhs
T
)
(
Rhs rhs
,)

Parameters

rhs Rhs

The right-hand side value in the assignment, after the operator has been evaluated

bound T

The bound being violated

Return Value

Type: T

cast(T) rhs

Meta