mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
13 lines
265 B
Kotlin
Vendored
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()
|