Overload sumOf and use both prewritten and my own simultaneously in Kotlin

后端 未结 0 355
盖世英雄少女心
盖世英雄少女心 2020-12-01 06:02

Suppose I have next class:

data class IntHolder(val x: Int) {
    operator fun plus(other: IntHolder) = IntHolder(x + other.x)
}

And an exten

相关标签:
回答
  • 消灭零回复
提交回复
热议问题