mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
Revert "Fix method reference ambiguity in test after introducing 'capitalize' overload"
This reverts commit fe9bd9ee
12 lines
265 B
Kotlin
Vendored
12 lines
265 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_REFLECT
|
|
|
|
import kotlin.reflect.KFunction1
|
|
import kotlin.reflect.jvm.isAccessible
|
|
|
|
fun doStuff(fn: KFunction1<String, String>) = fn.call("oK")
|
|
|
|
fun box(): String {
|
|
return doStuff(String::capitalize.apply { isAccessible = true })
|
|
}
|