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

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