Skip to content

Implement unary minus operator#20

Merged
saket merged 1 commit into
saket:trunkfrom
JakeWharton:jw.unary-minus.2026-03-16
Mar 16, 2026
Merged

Implement unary minus operator#20
saket merged 1 commit into
saket:trunkfrom
JakeWharton:jw.unary-minus.2026-03-16

Conversation

@JakeWharton

Copy link
Copy Markdown
Contributor

No description provided.

override inline fun div(other: Number): BinaryByteSize =
BinaryByteSize(commonDiv(other))

override operator fun unaryMinus(): BinaryByteSize =

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing inline for all the 3 impls.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Np, I can add these

@saket saket merged commit da2519a into saket:trunk Mar 16, 2026
2 checks passed
@saket

saket commented Mar 26, 2026

Copy link
Copy Markdown
Owner

Released as part of https://github.com/saket/byte-size/releases/tag/2.2.0. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants