4bdf7e3426
#KT-3845 Fixed
22 lines
285 B
Kotlin
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]\.
|