Throw.hookOpEquals
Called automatically upon a comparison for equality. Throws upon an erroneous comparison (one that would make a signed negative value appear equal to an unsigned positive value).
Parameters
lhs | The first argument of Checked, e.g. int if the left-hand side of the operator is Checked!int |
rhs | The right-hand side type involved in the operator |
Returns
The result of the comparison.
Throws
CheckFailure if the comparison is mathematically erroneous.