a38040680c
Beside some corner cases, it's already prohibited in K1 because adaptation have a bit strange nature (they don't represent any existing real function exactly) ^KT-55137 Fixed
10 lines
164 B
Kotlin
Vendored
10 lines
164 B
Kotlin
Vendored
// TARGET_BACKEND: JVM_IR
|
|
// IGNORE_BACKEND_K1: JVM_IR
|
|
|
|
fun foo(x: String = "OK"): String = x
|
|
|
|
fun box(): String {
|
|
val f: () -> String = ::foo
|
|
return f()
|
|
}
|