mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
13 lines
215 B
Kotlin
Vendored
13 lines
215 B
Kotlin
Vendored
package test
|
|
|
|
var res = 1
|
|
|
|
class A {
|
|
|
|
inline operator fun Int.get(z: Int, p: () -> Int) = this + z + p()
|
|
|
|
inline operator fun Int.set(z: Int, p: () -> Int, l: Int) {
|
|
res = this + z + p() + l
|
|
}
|
|
|
|
} |