mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
12 lines
274 B
Kotlin
Vendored
12 lines
274 B
Kotlin
Vendored
package test
|
|
|
|
var res = 1
|
|
|
|
class A {
|
|
|
|
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*/
|
|
}
|
|
} |