You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NegLong(-1L) // compilesNegLong(0L) // compile-time errorNegLong(1L) // compile-time errorNegLong.from(-123L)
// Either[String, NegLong] = Right(NegLong(-123L))NegLong.from(123L)
// Either[String, NegLong] = Left("Invalid value: 123L. It must be a negative Long")NegLong.unsafeFrom(-999L)
// NegLong = NegLong(-999L)NegLong.unsafeFrom(999L)
// IllegalArgumentException(Invalid value: 999L. It must be a negative Long) is thrown
The text was updated successfully, but these errors were encountered:
Summary
[core] Add
numeric.NegLong
Version
unreleased
Description
The text was updated successfully, but these errors were encountered: