Files
kotlin/compiler/testData/codegen/bytecodeText/privateDefaultArgs.kt
Alexander Udalov 59777e7df6 Generate "$kotlinClass"/"$kotlinPackage" reflection fields to every class
Some seemingly irrelevant tests were changed because now there's <clinit> in
almost every class and class initialization begins with executing it
2014-07-02 01:26:18 +04:00

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