mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-07 15:53:18 +00:00
22 lines
286 B
Kotlin
Vendored
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]\.
|