Files
kotlin-fork/compiler/testData/codegen/box/defaultArguments/private/memberFunction.kt
T
2018-06-21 13:27:17 +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()