Files
kotlin/compiler/testData/codegen/bytecodeText/kt2202.kt

22 lines
286 B
Kotlin
Vendored

// KT-2202 Wrong instruction for invoke private setter
class A {
private fun f1() {}
fun foo() {
f1()
}
}
class B {
var foo = 1
private set(value) { field = value }
fun foo() {
foo = 2
}
}
// 0 INVOKEVIRTUAL
// 2 INVOKESPECIAL [AB]\.