mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Some seemingly irrelevant tests were changed because now there's <clinit> in almost every class and class initialization begins with executing it
22 lines
261 B
Kotlin
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]\.
|