Files
kotlin-fork/compiler/testData/codegen/box/defaultArguments/private/memberFunction.kt
T
2020-03-10 15:19:34 +03:00

12 lines
235 B
Kotlin
Vendored

// 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()