Warn.onLowerBound

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

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: Lhs

cast(Lhs) rhs

Meta

Suggestion Box / Bug Report