types icon indicating copy to clipboard operation
types copied to clipboard

✨ New `plus`, `minus` and `times` functions in `NegativeInteger`

Open LVMVRQUXL opened this issue 6 months ago • 0 comments

📝 Description

For all Kotlin platforms and Java, we want to add the following binary operations as experimental declarations:

operator fun NegativeInteger.plus(other: PositiveInteger): Integer = TODO()
operator fun NegativeInteger.plus(other: NegativeInteger): NegativeInteger = TODO()

operator fun NegativeInteger.minus(other: PositiveInteger): NegativeInteger = TODO()
operator fun NegativeInteger.minus(other: NegativeInteger): Integer = TODO()

operator fun NegativeInteger.times(other: PositiveInteger): NegativeInteger = TODO()
operator fun NegativeInteger.times(other: NegativeInteger): PositiveInteger = TODO()

🔗 Dependencies

This issue is blocked by the following items:

  • [ ] #821
  • [ ] #661
  • [ ] #822

✅ Checklist

See the Issue implementation section in the contributing guidelines before addressing the following checklist.

  • [ ] ✨ Add the NegativeInteger.plus(PositiveInteger) function with tests, documentation and samples.
  • [ ] ✨ Add the NegativeInteger.plus(NegativeInteger) function with tests, documentation and samples.
  • [ ] ✨ Add the NegativeInteger.minus(PositiveInteger) function with tests, documentation and samples.
  • [ ] ✨ Add the NegativeInteger.minus(NegativeInteger) function with tests, documentation and samples.
  • [ ] ✨ Add the NegativeInteger.times(PositiveInteger) function with tests, documentation and samples.
  • [ ] ✨ Add the NegativeInteger.times(NegativeInteger) function with tests, documentation and samples.
  • [ ] 📝 Update the unreleased changelog for this issue.
  • [ ] 📝 After closing this issue, update the status of tracking issues depending only on this one.

LVMVRQUXL avatar Apr 24 '25 10:04 LVMVRQUXL