Files
kotlin/compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambdaInClass.2.kt

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
}
}