Files
kotlin/compiler/testData/codegen/bytecodeText/kt2202.kt
2014-07-17 19:18:05 +04:00

22 lines
285 B
Kotlin

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