mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Test data should be a Kotlin source file with zero or more comments e.g. of the form: '// 1 INVOKEVIRTUAL'. The test then checks that the generated bytecode for this file contains exactly one occurrence of the string 'INVOKEVIRTUAL'
22 lines
254 B
Kotlin
22 lines
254 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
|
|
// 4 INVOKESPECIAL
|