Warn.onUpperBound

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

  1. Lhs onLowerBound(Rhs rhs, T bound)
  2. T onUpperBound(Rhs rhs, T bound)
    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(Lhs) rhs

Meta

Suggestion Box / Bug Report