mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
12 lines
235 B
Kotlin
Vendored
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()
|