mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-07 08:31:28 +00:00
Some seemingly irrelevant tests were changed because now there's <clinit> in almost every class and class initialization begins with executing it
17 lines
239 B
Kotlin
Vendored
17 lines
239 B
Kotlin
Vendored
// Check that this code doesn't contains INVOKEVIRTUAL instruction
|
|
class B {
|
|
private fun foo(i: Int = 1) {
|
|
}
|
|
|
|
fun f() {
|
|
foo(2)
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return "OK"
|
|
}
|
|
|
|
// 0 INVOKEVIRTUAL
|
|
// 2 INVOKESPECIAL B\.foo
|