mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
10 lines
246 B
Kotlin
Vendored
10 lines
246 B
Kotlin
Vendored
package test
|
|
|
|
var res = 1
|
|
|
|
inline operator fun Int.get(z: Int, p: () -> Int, defaultt: Int = 100) = this + z + p() + defaultt
|
|
|
|
inline operator fun Int.set(z: Int, p: () -> Int, l: Int/*, x : Int = 1000*/) {
|
|
res = this + z + p() + l /*+ x*/
|
|
}
|