Files
kotlin/compiler/testData/codegen/bytecodeText/kt2202.kt
Alexander Udalov 59777e7df6 Generate "$kotlinClass"/"$kotlinPackage" reflection fields to every class
Some seemingly irrelevant tests were changed because now there's <clinit> in
almost every class and class initialization begins with executing it
2014-07-02 01:26:18 +04:00

22 lines
261 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
fun foo() {
foo = 2
}
}
// 0 INVOKEVIRTUAL
// 2 INVOKESPECIAL [AB]\.