Files
kotlin/compiler/testData/codegen/box/defaultArguments/private/memberFunction.kt
2019-11-19 11:00:09 +03:00

13 lines
265 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// KT-5786 NoSuchMethodError: no accessor for private fun with default arguments
class A {
private fun foo(result: String = "OK"): String = result
companion object {
fun bar() = A().foo()
}
}
fun box() = A.bar()