plus
Требования к платформе и версии: Common (1.0), JS (1.1), JVM (1.0)
expect operator fun plus(other: Byte): Int
expect operator fun plus(other: Short): Int
expect operator fun plus(other: Int): Int
expect operator fun plus(other: Long): Long
expect operator fun plus(other: Float): Float
expect operator fun plus(other: Double): Double
Прибавляет другое значение к этому значению.
Требования к платформе и версии: Native (1.3), Wasm-JS (1.8), Wasm-WASI (1.8)
actual inline operator fun plus(other: Byte): Int
actual inline operator fun plus(other: Short): Int
actual inline operator fun plus(other: Int): Int
actual inline operator fun plus(other: Long): Long
actual inline operator fun plus(other: Float): Float
actual inline operator fun plus(other: Double): Double
Прибавляет другое значение к этому значению.
© 2010–2026 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/plus.html